qos-ch / logback

The reliable, generic, fast and flexible logging framework for Java.
http://logback.qos.ch
Other
2.97k stars 1.28k forks source link

Archiving is triggered only when log is being written. #832

Open 4braincells opened 1 month ago

4braincells commented 1 month ago

It seems that as long as no logs are written by a certain appender, the underlying file is not archived until new log entries occur. This results in log files remaining in the log folder and not being archived even if they are months old.

I would want a parameter <forceHistorization>00:00:01</forceHistorization> to ensure that on a change in the %d{yyyy-MM-dd} fileNamePattern value the file will be archived at 00:00:01 hrs.