updateCurrentLogFile method

  1. @visibleForTesting
RandomAccessFile updateCurrentLogFile(
  1. Directory logDir
)

Updates current log file with a newly created one

Implementation

@visibleForTesting
RandomAccessFile updateCurrentLogFile(Directory logDir) {
  final String fileName =
      '$logNamePrefix$logFileNameSuffix$currentLogIndex.log';

  currentLogFile = File(path.join(logDir.path, fileName));

  return currentLogFile.openSync(mode: FileMode.writeOnlyAppend);
}