[logback-user] Does SizeAndTime based RollingFileAppender support prudent mode

ceki ceki at qos.ch
Wed Feb 20 21:57:22 CET 2013


Hello,

What is printed when you set the debug attribute of <configuration> to 
true? Example:

<configuration debug="true">...</configuration>


-- 
Ceki
65% of statistics are made up on the spot

On 20.02.2013 21:11, Desmond Kirrane wrote:
> 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?
>
>
>
>



More information about the Logback-user mailing list