lager
lager copied to clipboard
log.file.rotation.count does not have option for 'infinity' (do not delete old logs)
I'm using RabbitMQ and ideally, I would like to rollover but not technically rotate my logs.
I've configured log.file.rotation.date
and log.file.rotation.sizebut no value of
log.file.rotation.countachieves the desired result. Omitting
log.file.rotation.countleaves the default value of 5. Per the main Readme, setting 0 will leave no archived files at all. I tried setting to
-1` which did not yield an error but presumably will not achieve what I want either (it's not documented at least).
So I guess this is a feature request. Well, two:
- Please add an option to allow rollover without rotation of logs.
- Please add an option for time based rotation to append the timestamp to the rotated log file. If this is already possible with log.file.name, please add it to documentation.