We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb3b263 commit 41900fcCopy full SHA for 41900fc
lib/src/outputs/advanced_file_output.dart
@@ -181,6 +181,8 @@ class AdvancedFileOutput extends LogOutput {
181
await _closeSink();
182
await _file.rename('$_path/${_fileNameFormatter(DateTime.now())}');
183
await _deleteRotatedFiles();
184
+ // Reset file ref to "latest"
185
+ _file = maxFileSizeKB > 0 ? File('$path/$latestFileName') : File(path);
186
await _openSink();
187
}
188
} catch (e, s) {
0 commit comments