[logback-user] technical question

Ayman Hammoudeh Ayman.Hammoudeh at Progressoft.com
Tue Sep 15 12:52:05 CEST 2009


I have a problem with TimeBasedRollingPolicy and that is older files are not deleted when I set the MaxHistory property in the xml,so any suggestions.

Here is my XML file:

<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- keep #days worth of history -->
<layout class="ch.qos.logback.classic.PatternLayout">
<Pattern>%d{HH:mm:ss.SSS}[%thread] %-5level %logger{35} - %msg%n</Pattern>
 <root level="debug">
 <appender-ref ref="FILE" />

Ayman Hammoudeh

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://qos.ch/pipermail/logback-user/attachments/20090915/8218923c/attachment.htm>

More information about the Logback-user mailing list