log4z icon indicating copy to clipboard operation
log4z copied to clipboard

Does log4z clear old logs in the logfolder?

Open jasonmnemonic opened this issue 3 years ago • 1 comments

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 avatar Jul 21 '21 09:07 jasonmnemonic

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?

jasonmnemonic avatar Jul 21 '21 09:07 jasonmnemonic