Details
-
Bug
-
Resolution: Fixed
-
Major
-
None
-
None
-
None
-
linux 2.6.18 64bits apache-tomcat-6.0.20 java/jre1.6.0_18
Description
The MaxHistory does not do the trick : the old files are not deleted at all :
cat logging.xml
<appender name="IDP_ACCESS" class="ch.qos.logback.core.rolling.RollingFileAppender">
<File>/shibboleth-idp/logs/idp-access.log</File>
<Append>false</Append>
<ImmediateFlush>true</ImmediateFlush>
<RollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<FileNamePattern>/shibboleth-idp/logs/old/idp-access-%d
.log.gz</FileNamePattern>
<MaxHistory>3</MaxHistory>
</RollingPolicy>
<layout class="ch.qos.logback.classic.PatternLayout">
<Pattern>%msg%n</Pattern>
</layout>
</appender>
Attachments
Issue Links
- blocks
-
LOGBACK-92 TimeBasedRollingPolicy does not trigger at application startup - MaxHistory not working
- Resolved