log4rs
log4rs copied to clipboard
can add trigger kind "time" in rolling_file
like generate a new log file every minute
or every hour or every day, i support for this feature request
Is this possible . I would be happy to work and contribute to this .
Is this possible . I would be happy to work and contribute to this .
had a bit dig into the issue, i guess it is most probably make another copy of https://github.com/estk/log4rs/blob/master/src/append/rolling_file/policy/compound/roll/fixed_window.rs and change only the function on determining whether to roll and the roll name. just i dont have time for this at the moment, glad if you can help 😂😂
I had a quick look at the file naming. From the initial look we are renaming all the files that are present in the archive . I am sure you would have thought about a better mechanism of modifying only the last file. Any thoughts on that
:+1: This would be an AWESOME feature. The renaming of every file in the fixed_window rolling policy is slowing us down every time a new archive is produced.
@alwinc you may want to look at the background_rotation compile flag. @chw741852 , @orbli , @hvina see https://github.com/estk/log4rs/pull/139 it was just never completed. If any of y'all would like to kick that back off let me know if I can answer any questions.
need kind "time"
Time trigger added in #296