[logback-user] Logs going over the limit specified in logback.xml

Nazila Massoodi nmassood at tibco.com
Thu Jun 21 00:25:33 CEST 2018


 Hi logback folks,

I see one application log goes over the limit specified in logback.xml file
intermittently (maxFileSize=300MB, minIndex=1, MaxIndex =10). It happens to
the first log and then it stabilizes with sub-sequence files. Has anyone
seen this issue before? Any ideas why this happens?


Snippet from logback.xml:

 <appender name="NEW-APPENDER-FOR-JETTY" class="ch.qos.logback.core.
rolling.RollingFileAppender">
    <file>../log/jetty_ERR_WARN.log</file>
    <rollingPolicy class="ch.qos.logback.core.rolling.
FixedWindowRollingPolicy">
        <fileNamePattern>../log/jetty_ERR_WARN_%i.log</fileNamePattern>
        <minIndex>1</minIndex>
        <maxIndex>3</maxIndex>
    </rollingPolicy>
    <triggeringPolicy class="ch.qos.logback.core.rolling.
SizeBasedTriggeringPolicy">
        <maxFileSize>200KB</maxFileSize>
    </triggeringPolicy>
    <encoder>
        <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} %-5level [%thread] %logger{36}
- %msg%n</pattern>
    </encoder>
</appender>

<logger name="org.eclipse.jetty" additivity="false"> ​<!--additivity makes
sure its using only this appender and not other parent appenders-->​
    <level value="WARN" />  <!-- Will include warn and error logs -->
    <appender-ref ref="NEW-APPENDER-FOR-JETTY"/>
</logger>

Thanks,
Nazila
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/logback-user/attachments/20180620/7b6f2516/attachment.html>


More information about the logback-user mailing list