[logback-user] log files are not rolling with logback.xml conf in karaf

Srikanth Hugar srikanth.hugar at gmail.com
Wed Apr 1 08:14:21 CEST 2015


Hello All,

      My log files are not rolling when it reached 10MB with below
configuration.
I tried other combination too, could not succeed. Please help me in
resolving the issue.
What i could be configuring wrong here.

 <appender name="FILE"
class="ch.qos.logback.core.rolling.RollingFileAppender">
        <file>data/log/karaf.log</file>
        <encoder>
            <pattern>%d{ISO8601} | %-5level | %thread | %logger{1} |
%message%n
</pattern>
        </encoder>
        <rollingPolicy
class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
            <maxIndex>15</maxIndex>
            <fileNamePattern>data/log/karaf.%d{yyyy-MM-dd}.%i.gz
</fileNamePattern>
        </rollingPolicy>
        <triggeringPolicy
class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
            <MaxFileSize>10MB</MaxFileSize>
        </triggeringPolicy>
    </appender>

Thanks.
Srikanth.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/logback-user/attachments/20150401/3bdde394/attachment.html>


More information about the Logback-user mailing list