[logback-user] Does SizeAndTime based RollingFileAppender support prudent mode
Desmond Kirrane
desmond.kirrane at gmail.com
Wed Feb 20 21:11:00 CET 2013
Hi,
I'm unsure from the documentation but does SizeAndTimeBasedFNATP
support prudent mode.
I have the following config:
<appender name="FILE"
class="ch.qos.logback.core.rolling.RollingFileAppender">
<prudent>true</prudent>
<rollingPolicy
class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<fileNamePattern>target/Test-%d{yyyy-MM-dd}.%i.log</fileNamePattern>
<timeBasedFileNamingAndTriggeringPolicy
class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
<maxFileSize>1KB</maxFileSize>
</timeBasedFileNamingAndTriggeringPolicy>
<maxHistory>30</maxHistory>
</rollingPolicy>
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} -
%msg%n</pattern>
</encoder>
</appender>
I've tried this and logback doesn't complain and file does rollover but
just wondering is the prudent flag used?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/logback-user/attachments/20130220/3d86c89d/attachment.html>
More information about the Logback-user
mailing list