RotatingFileSink and the log filenames without extension #938
Replies: 3 comments 1 reply
-
|
Reproduced this on v12.0.0 and yeah, looks like a bug rather than intended. The no-ext path breaks recovery in So the workaround is exactly what you found: give it an extension. A real fix would derive the suffix from the base stem instead of |
Beta Was this translation helpful? Give feedback.
-
|
For me, workaround is fine - I mean in 99% of the time, extension will be present anyway. It's just that someone might be a bit surprised when the files start "accumulating" if they forget to specify the filename with the extension. Maybe mentioning this in the official docs could be enough for this issue... |
Beta Was this translation helpful? Give feedback.
-
|
thanks for reporting, there is a fix in #939 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
After the new release of the library (12.0.0) this issue was resolved and the files from the previous application/service runs were taken into account for the maximum number of the files which can be generated for the RotatingFileSink. There is one more question -> if in the destination for the RotatingFileSink the filename has been specified which does not have an extension then this does not work - i.e. files generated from the previous runs start to "accumulate" once again. Is the desired behaviour? This is quite easy to reproduce with the following configuration:
In the case of the
rotating_file_sink_1previously generated files are not taken into account while for therotating_file_sink_2this works as expected with the 12.0.0 version of the library.Beta Was this translation helpful? Give feedback.
All reactions