Skip to content

Commit 41900fc

Browse files
authored
Update advanced_file_output.dart
1 parent bb3b263 commit 41900fc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/src/outputs/advanced_file_output.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,8 @@ class AdvancedFileOutput extends LogOutput {
181181
await _closeSink();
182182
await _file.rename('$_path/${_fileNameFormatter(DateTime.now())}');
183183
await _deleteRotatedFiles();
184+
// Reset file ref to "latest"
185+
_file = maxFileSizeKB > 0 ? File('$path/$latestFileName') : File(path);
184186
await _openSink();
185187
}
186188
} catch (e, s) {

0 commit comments

Comments
 (0)