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

Does log4z clear old logs in the logfolder? #71

Open
jasonmnemonic opened this issue Jul 21, 2021 · 1 comment
Open

Does log4z clear old logs in the logfolder? #71

jasonmnemonic opened this issue Jul 21, 2021 · 1 comment

Comments

@jasonmnemonic
Copy link

Hi.

Good work! Just wondering if the logger clears old logs in the logfolder when files are getting too big and too many, or them being too old? Is it something we need to clean up ourselves from time to time or through a flag in the config file somewhere?

Really appreciate the work! :-)

Thanks.

@jasonmnemonic
Copy link
Author

I think I know the answer. There is no delete if file is too big and too many but there is a delete after too old. The time after too old is defined in seconds and the key to use in config is reserve so delete after 30 days is,

reserve=2.592e+6

Does that look right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant