Skip to content
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

can add trigger kind "time" in rolling_file #235

Closed
chw741852 opened this issue Sep 3, 2021 · 8 comments
Closed

can add trigger kind "time" in rolling_file #235

chw741852 opened this issue Sep 3, 2021 · 8 comments

Comments

@chw741852
Copy link

like generate a new log file every minute

@orbli
Copy link

orbli commented Sep 15, 2021

or every hour or every day, i support for this feature request

@hvina
Copy link

hvina commented Sep 16, 2021

Is this possible . I would be happy to work and contribute to this .

@orbli
Copy link

orbli commented Sep 16, 2021

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 😂😂

@hvina
Copy link

hvina commented Sep 16, 2021

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

@alwinc
Copy link

alwinc commented Oct 12, 2021

👍
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.

@estk
Copy link
Owner

estk commented Apr 19, 2022

@alwinc you may want to look at the background_rotation compile flag.
@chw741852 , @orbli , @hvina see #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.

@lingfan
Copy link

lingfan commented Jun 9, 2022

need kind "time"

@bconn98
Copy link
Collaborator

bconn98 commented Feb 10, 2024

Time trigger added in #296

@bconn98 bconn98 closed this as completed Feb 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants