[logback-user] RollingFileAppender does not roll after max size exceeds
amit shah
amits.84 at gmail.com
Fri Oct 10 08:56:27 CEST 2014
Hello,
I am using using logback version 1.0.9 with slf4j 1.7.2. I see my log file
not getting rolled over even after the maxFileSize exceeds. I see that the
new logs are still logged to the same file and its size continuously
increasing. My configuration is as below
<appender name="WEB_LOG"
class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>web.log</file>
<rollingPolicy
class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
<fileNamePattern>web%i.log</fileNamePattern>
<minIndex>1</minIndex>
<maxIndex>9</maxIndex>
</rollingPolicy>
<triggeringPolicy
class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
<maxFileSize>20MB</maxFileSize>
</triggeringPolicy>
<encoder>
<pattern>%date [%thread] %-5level %logger{36} %line -
%msg%n</pattern>
</encoder>
</appender>
The current log file size is over 55 mb. I would like to know if there is
any information that I could capture while this issue is seen in the
production environment since I assume this would be a rare bug being seen.
Regards,
Amit.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/logback-user/attachments/20141010/39a4ca32/attachment.html>
More information about the Logback-user
mailing list