[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> <appender \
name="FILE" \
class="ch.qos.logback.core.rolling.RollingFileAppender"></div><div> \
<file>data/log/karaf.log</file></div><div> \
<encoder></div><div> <pattern>%d{ISO8601} | %-5level | \
%thread | %logger{1} | %message%n</div><div><span class="" \
style="white-space:pre"> </span></pattern></div><div> \
</encoder></div><div> <rollingPolicy \
class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"></div><div> \
<maxIndex>15</maxIndex></div><div> \
<fileNamePattern>data/log/karaf.%d{yyyy-MM-dd}.%i.gz</div><div><span class="" \
style="white-space:pre"> </span></fileNamePattern></div><div> \
</rollingPolicy></div><div> <triggeringPolicy \
class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"></div><div> \
<MaxFileSize>10MB</MaxFileSize></div><div> \
</triggeringPolicy></div><div> \
</appender></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