<div dir="ltr"><div style>Hi,</div><div style><br></div><div style>Nothing mentioned in the logs for prudent. Does this mean it just ignores the prudent flag silently? Output below</div><div><br></div><div><br></div><div>21:45:11,367 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy]</div>
<div>21:45:11,367 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback-test.xml] at [file:/..../target/test-classes/logback-test.xml]</div><div>21:45:11,465 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - Setting ReconfigureOnChangeFilter scanning period to 30 seconds</div>
<div>21:45:11,466 |-INFO in ReconfigureOnChangeFilter{invocationCounter=0} - Will scan for changes in [[/..../logback-test.xml]] every 30 seconds. </div><div>21:45:11,466 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - Adding ReconfigureOnChangeFilter as a turbo filter</div>
<div>21:45:11,470 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]</div><div>21:45:11,489 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [CONSOLE_LOG]</div>
<div>21:45:11,540 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property</div><div>21:45:11,597 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender]</div>
<div>21:45:11,600 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [<span style="font-family:arial,sans-serif;font-size:13px">FILE</span>]</div><div>21:45:11,626 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy - No compression will be used</div>
<div>21:45:11,628 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy - Will use the pattern target/Test-%d{yyyy-MM-dd'T'HHmm}.%i.log for the active file</div><div>21:45:11,631 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@1f91d41b - The date pattern is 'yyyy-MM-dd'T'HHmm' from file name pattern 'target/Test-%d{yyyy-MM-dd'T'HHmm}.%i.log'.</div>
<div>21:45:11,631 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@1f91d41b - Roll-over every minute.</div><div>21:45:11,631 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@1f91d41b - Setting initial period to Wed Feb 20 21:45:11 GMT 2013</div>
<div>21:45:11,633 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property</div><div>21:45:11,634 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[<span style="font-family:arial,sans-serif;font-size:13px">FILE</span>] - Active log file name: target/Test-2013-02-20T2145.0.log</div>
<div>21:45:11,634 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[<span style="font-family:arial,sans-serif;font-size:13px">FILE</span>] - File property is set to [null]</div><div>21:45:11,637 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [com.mycompany] to ALL</div>
<div>21:45:11,637 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to ALL</div><div>21:45:11,637 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [CONSOLE_LOG] to Logger[ROOT]</div>
<div>21:45:11,638 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [<span style="font-family:arial,sans-serif;font-size:13px">FILE</span>] to Logger[ROOT]</div><div>21:45:11,638 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration.</div>
<div>21:45:11,640 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@6948c93e - Registering current configuration as safe fallback point</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Feb 20, 2013 at 8:57 PM, ceki <span dir="ltr"><<a href="mailto:ceki@qos.ch" target="_blank">ceki@qos.ch</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
What is printed when you set the debug attribute of <configuration> to true? Example:<br>
<br>
<configuration debug="true">...</<u></u>configuration><br>
<br>
<br>
-- <br>
Ceki<br>
65% of statistics are made up on the spot<div><div class="h5"><br>
<br>
On 20.02.2013 21:11, Desmond Kirrane wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
I'm unsure from the documentation but does SizeAndTimeBasedFNATP<br>
support prudent mode.<br>
<br>
I have the following config:<br>
<br>
<appender name="FILE"<br>
class="ch.qos.logback.core.<u></u>rolling.RollingFileAppender"><br>
<prudent>true</prudent><br>
<rollingPolicy<br>
class="ch.qos.logback.core.<u></u>rolling.<u></u>TimeBasedRollingPolicy"><br>
<br>
<fileNamePattern>target/Test-%<u></u>d{yyyy-MM-dd}.%i.log</<u></u>fileNamePattern><br>
<<u></u>timeBasedFileNamingAndTriggeri<u></u>ngPolicy<br>
class="ch.qos.logback.core.<u></u>rolling.SizeAndTimeBasedFNATP"<u></u>><br>
<maxFileSize>1KB</maxFileSize><br>
</<u></u>timeBasedFileNamingAndTriggeri<u></u>ngPolicy><br>
<br>
<maxHistory>30</maxHistory><br>
</rollingPolicy><br>
<encoder><br>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} -<br>
%msg%n</pattern><br>
</encoder><br>
</appender><br>
<br>
I've tried this and logback doesn't complain and file does rollover but<br>
just wondering is the prudent flag used?<br>
<br>
<br>
<br>
<br>
</blockquote>
<br></div></div>
______________________________<u></u>_________________<br>
Logback-user mailing list<br>
<a href="mailto:Logback-user@qos.ch" target="_blank">Logback-user@qos.ch</a><br>
<a href="http://mailman.qos.ch/mailman/listinfo/logback-user" target="_blank">http://mailman.qos.ch/mailman/<u></u>listinfo/logback-user</a><br>
</blockquote></div><br></div>