-
Notifications
You must be signed in to change notification settings - Fork 125
Date-driven (rather than count-driven) file retention option #39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Looks like the packages got truncated
|
@stephenpatten thanks for the note; this is by design at the moment (it's |
Got it. So no matter how large these are, (1GB by default) I will only retain 90 of them regardless of the date of creation. Another quick question, do I have the file settings for buffering and flushing setup correctly to be used in an asynchronous operation?
|
Looks good 👍 |
@nblumhardt I tried AlternateRollingFile but often it writes 0KB, now I see SuperRollingFileAlternate available, but it will be helpful if we can see this feature on sinks-file itself. |
Just created PR #90 |
In the current -dev package; thanks @thiagosgarcia 👍 |
Nick,
Aside from the fact that I (we) log too much, how do I keep all the log files created per day. It looks like we are only keeping the last 31 files. My thinking would be that with my config that the time period would trump the file size rolling behaviour. i.e. I should have 31 calendar days of logs and each day may have hundreds of files that rolled on size.. Hope that make some sense.
Below you'll find my logger bootstrap and the packages I'm using.
Thank you,
Stephen
The text was updated successfully, but these errors were encountered: