onFileExceededMaxSize method
- @visibleForTesting
Called when the current log file exceeded maxLogSizeInMb.
Implementation
@visibleForTesting
void onFileExceededMaxSize() {
writer?.flushSync();
writer?.closeSync();
currentLogIndex++;
writer = updateCurrentLogFile(logFileDirectory);
assert(writer != null, 'sink should not be null here');
}