lager icon indicating copy to clipboard operation
lager copied to clipboard

log.file.rotation.count does not have option for 'infinity' (do not delete old logs)

Open ducttapecoder-vt opened this issue 4 years ago • 0 comments

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 oflog.file.rotation.countachieves the desired result. Omittinglog.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:

  1. Please add an option to allow rollover without rotation of logs.
  2. 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.

ducttapecoder-vt avatar Jun 26 '20 19:06 ducttapecoder-vt