You probably meant : <rollingPolicy> instead of <rollingPolisy>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<MaxHistory>5</MaxHistory>
</rollingPolicy>
Or if desired max history only for the archive configuration:
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<TimeBasedFileNamingAndTriggeringPolicy
class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
<MaxFileSize>${sizeThreshold}</MaxFileSize>
<MaxHistory>5</MaxHistory>
</TimeBasedFileNamingAndTriggeringPolicy>
</rollingPolicy>
That the way I understood the documentation
_____
De : [email protected] [mailto:[email protected]] De la
part de Ayman Hammoudeh
Envoyé : jeudi 1 octobre 2009 15:12
À : [email protected]
Objet : [logback-user] urgent explination issue
Hello,
I want to know how can I use max history in Size
<http://logback.qos.ch/manual/appenders.html#SizeAndTimeBasedFNATP> and time
based archiving and where exactly to put the<MaxHistory> tag in the xml , I
have tried to put it in the <RollingPolisy> tag but its not working.
Any help would be appreciated.
Best Regards,
Ayman Hammoudeh
_______________________________________________
Logback-user mailing list
[email protected]
http://qos.ch/mailman/listinfo/logback-user