You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, we don't limit the total number of log files. A long-running database may generate too many log files. We need to limit the max log files to keep by default.
I would like to give this a try. I wonder what number of the max_log_files by default is considered proper? @evenyag
We rotate files hourly, so it should have about 24 files per day (we only consider info logs). If we want to keep logs for 30 days, we can set the default to 720.
What type of enhancement is this?
User experience
What does the enhancement do?
Currently, we don't limit the total number of log files. A long-running database may generate too many log files. We need to limit the max log files to keep by default.
Implementation challenges
The tracing-appender already supports setting the max log files. We can expose this in our
LoggingOptions
.https://docs.rs/tracing-appender/latest/tracing_appender/rolling/struct.Builder.html#method.max_log_files
The text was updated successfully, but these errors were encountered: