[logback-user] FixedWindowRollingPolicy has max 20?
Gena Makhomed
gmm at csdoc.com
Tue Aug 12 17:49:57 CEST 2014
On 12.08.2014 18:16, Dessie K wrote:
> I'm trying to have a large window size 200.
>
> But noticed it is fixed to max 20:
>
> https://github.com/qos-ch/logback/blob/master/logback-core/src/main/java/ch/qos/logback/core/rolling/FixedWindowRollingPolicy.java
>
> Why is 20 the max?
> An is there anyway to force it to use a larger window size?
subclasses can override it:
https://github.com/qos-ch/logback/blob/master/logback-core/src/main/java/ch/qos/logback/core/rolling/FixedWindowRollingPolicy.java
/**
* Subclasses can override this method to increase the max window
size, if required. This is to
* address LOGBACK-266.
* @return
*/
protected int getMaxWindowSize() {
return MAX_WINDOW_SIZE;
}
or probably you just need
http://logback.qos.ch/manual/appenders.html#SizeAndTimeBasedFNATP
more details in http://jira.qos.ch/browse/LOGBACK-266
--
Best regards,
Gena
More information about the Logback-user
mailing list