updateCurrentLogFile method
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);
}