[prev in list] [next in list] [prev in thread] [next in thread] 

List:       logback-user
Subject:    [logback-user] log files are not rolling with logback.xml conf in karaf
From:       Srikanth Hugar <srikanth.hugar () gmail ! com>
Date:       2015-04-01 6:26:21
Message-ID: CAOUabB2hioHd-buT4Xf=sWK8chc6PKj7tBmafDdb04jvqLP3_w () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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.

[Attachment #5 (text/html)]

<div dir="ltr"><div><div class="gmail_signature"><div dir="ltr"><div><div>Hello \
All,</div></div><div><br></div><div>         My log files are not rolling when it \
reached 10MB with below configuration.</div><div>I tried other combination too, could \
not succeed. Please help me in resolving the issue.</div><div>What i could be \
configuring wrong here.</div><div><br></div><div><div>  &lt;appender \
name=&quot;FILE&quot; \
class=&quot;ch.qos.logback.core.rolling.RollingFileAppender&quot;&gt;</div><div>      \
&lt;file&gt;data/log/karaf.log&lt;/file&gt;</div><div>            \
&lt;encoder&gt;</div><div>                  &lt;pattern&gt;%d{ISO8601} | %-5level | \
%thread | %logger{1} | %message%n</div><div><span class="" \
style="white-space:pre">			</span>&lt;/pattern&gt;</div><div>            \
&lt;/encoder&gt;</div><div>            &lt;rollingPolicy \
class=&quot;ch.qos.logback.core.rolling.FixedWindowRollingPolicy&quot;&gt;</div><div> \
&lt;maxIndex&gt;15&lt;/maxIndex&gt;</div><div>                  \
&lt;fileNamePattern&gt;data/log/karaf.%d{yyyy-MM-dd}.%i.gz</div><div><span class="" \
style="white-space:pre">			</span>&lt;/fileNamePattern&gt;</div><div>            \
&lt;/rollingPolicy&gt;</div><div>            &lt;triggeringPolicy \
class=&quot;ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy&quot;&gt;</div><div> \
&lt;MaxFileSize&gt;10MB&lt;/MaxFileSize&gt;</div><div>            \
&lt;/triggeringPolicy&gt;</div><div>      \
&lt;/appender&gt;</div></div><div><br></div><div>Thanks.</div><div>Srikanth.</div></div></div></div>
 </div>



_______________________________________________
Logback-user mailing list
Logback-user@qos.ch
http://mailman.qos.ch/mailman/listinfo/logback-user

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic