[logback-user] Change FixedWindowRollingPolicy rolling behaviour

DK desmond.kirrane at gmail.com
Fri May 13 07:44:03 UTC 2016

Ok, maybe I'm missing something... but instead of reverse order could
FixedWindowRollingPolicy maintain a 'currentIndex'

- It begins with currentIndex = 0
- The active file is always foo.log
- On each rollover foo.log is renamed: foo{currentIndex+1}.log

When number of rollover > maxIndex just start deleting the earlier rollovers
foo1.log, foo2.log etc...

View this message in context: http://logback.10977.n7.nabble.com/Change-FixedWindowRollingPolicy-rolling-behaviour-tp14954p14986.html
Sent from the Users mailing list archive at Nabble.com.

More information about the logback-user mailing list