<div dir="ltr">Hi,<div><br></div><div style>Bar my own lof statements there is nothing else bar the following in console other then the following on rollover:</div><div style><br></div><div style><div><br></div><div>21:45:12,655 |-INFO in ch.qos.logback.core.rolling.helper.SizeAndTimeBasedArchiveRemover@2d86d8d1 - first clean up after appender initialization</div>
<div>21:45:12,655 |-INFO in ch.qos.logback.core.rolling.helper.SizeAndTimeBasedArchiveRemover@2d86d8d1 - periodsElapsed = 336</div><div><br></div><div>....</div><div><br></div><div>21:45:12,752 |-WARN in ch.qos.logback.core.rolling.helper.SizeAndTimeBasedArchiveRemover@2d86d8d1 - Unexpected periodsElapsed value 0<br>
</div><div><br></div><div>...</div><div><br></div><div>21:45:12,746 |-WARN in ch.qos.logback.core.rolling.helper.SizeAndTimeBasedArchiveRemover@2d86d8d1 - Unexpected periodsElapsed value 0<br></div></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Wed, Feb 20, 2013 at 9:55 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">
<br>
Not all properties are printed on the console. The prudent mode is probably set correctly. Could you please also include the output on the console written when roll over occurs?<div><div class="h5"><br>
<br>
On 20.02.2013 22:50, Desmond Kirrane wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
Hi,<br>
<br>
Nothing mentioned in the logs for prudent. Does this mean it just<br>
ignores the prudent flag silently? Output below<br>
<br>
<br>
21:45:11,367 |-INFO in ch.qos.logback.classic.<u></u>LoggerContext[default] -<br>
Could NOT find resource [logback.groovy]<br>
21:45:11,367 |-INFO in ch.qos.logback.classic.<u></u>LoggerContext[default] -<br>
Found resource [logback-test.xml] at<br>
[file:/..../target/test-<u></u>classes/logback-test.xml]<br>
21:45:11,465 |-INFO in<br>
ch.qos.logback.classic.joran.<u></u>action.ConfigurationAction - Setting<br>
ReconfigureOnChangeFilter scanning period to 30 seconds<br>
21:45:11,466 |-INFO in ReconfigureOnChangeFilter{<u></u>invocationCounter=0} -<br>
Will scan for changes in [[/..../logback-test.xml]] every 30 seconds.<br>
21:45:11,466 |-INFO in<br>
ch.qos.logback.classic.joran.<u></u>action.ConfigurationAction - Adding<br>
ReconfigureOnChangeFilter as a turbo filter<br>
21:45:11,470 |-INFO in ch.qos.logback.core.joran.<u></u>action.AppenderAction -<br>
About to instantiate appender of type [ch.qos.logback.core.<u></u>ConsoleAppender]<br>
21:45:11,489 |-INFO in ch.qos.logback.core.joran.<u></u>action.AppenderAction -<br>
Naming appender as [CONSOLE_LOG]<br>
21:45:11,540 |-INFO in<br>
ch.qos.logback.core.joran.<u></u>action.NestedComplexPropertyIA - Assuming<br>
default type [ch.qos.logback.classic.<u></u>encoder.PatternLayoutEncoder] for<br>
[encoder] property<br>
21:45:11,597 |-INFO in ch.qos.logback.core.joran.<u></u>action.AppenderAction -<br>
About to instantiate appender of type<br>
[ch.qos.logback.core.rolling.<u></u>RollingFileAppender]<br>
21:45:11,600 |-INFO in ch.qos.logback.core.joran.<u></u>action.AppenderAction -<br>
Naming appender as [FILE]<br>
21:45:11,626 |-INFO in c.q.l.core.rolling.<u></u>TimeBasedRollingPolicy - No<br>
compression will be used<br>
21:45:11,628 |-INFO in c.q.l.core.rolling.<u></u>TimeBasedRollingPolicy - Will<br>
use the pattern target/Test-%d{yyyy-MM-dd'T'<u></u>HHmm}.%i.log for the active file<br>
21:45:11,631 |-INFO in<br>
ch.qos.logback.core.rolling.<u></u>SizeAndTimeBasedFNATP@1f91d41b - The date<br>
pattern is 'yyyy-MM-dd'T'HHmm' from file name pattern<br>
'target/Test-%d{yyyy-MM-dd'T'<u></u>HHmm}.%i.log'.<br>
21:45:11,631 |-INFO in<br>
ch.qos.logback.core.rolling.<u></u>SizeAndTimeBasedFNATP@1f91d41b - Roll-over<br>
every minute.<br>
21:45:11,631 |-INFO in<br>
ch.qos.logback.core.rolling.<u></u>SizeAndTimeBasedFNATP@1f91d41b - Setting<br>
initial period to Wed Feb 20 21:45:11 GMT 2013<br>
21:45:11,633 |-INFO in<br>
ch.qos.logback.core.joran.<u></u>action.NestedComplexPropertyIA - Assuming<br>
default type [ch.qos.logback.classic.<u></u>encoder.PatternLayoutEncoder] for<br>
[encoder] property<br>
21:45:11,634 |-INFO in<br>
ch.qos.logback.core.rolling.<u></u>RollingFileAppender[FILE] - Active log file<br>
name: target/Test-2013-02-20T2145.0.<u></u>log<br>
21:45:11,634 |-INFO in<br>
ch.qos.logback.core.rolling.<u></u>RollingFileAppender[FILE] - File property is<br>
set to [null]<br>
21:45:11,637 |-INFO in ch.qos.logback.classic.joran.<u></u>action.LoggerAction<br>
- Setting level of logger [com.mycompany] to ALL<br>
21:45:11,637 |-INFO in<br>
ch.qos.logback.classic.joran.<u></u>action.RootLoggerAction - Setting level of<br>
ROOT logger to ALL<br>
21:45:11,637 |-INFO in<br>
ch.qos.logback.core.joran.<u></u>action.AppenderRefAction - Attaching appender<br>
named [CONSOLE_LOG] to Logger[ROOT]<br>
21:45:11,638 |-INFO in<br>
ch.qos.logback.core.joran.<u></u>action.AppenderRefAction - Attaching appender<br>
named [FILE] to Logger[ROOT]<br>
21:45:11,638 |-INFO in<br>
ch.qos.logback.classic.joran.<u></u>action.ConfigurationAction - End of<br>
configuration.<br>
21:45:11,640 |-INFO in<br>
ch.qos.logback.classic.joran.<u></u>JoranConfigurator@6948c93e - Registering<br>
current configuration as safe fallback point<br>
<br>
<br></div></div>
On Wed, Feb 20, 2013 at 8:57 PM, ceki <<a href="mailto:ceki@qos.ch" target="_blank">ceki@qos.ch</a> <mailto:<a href="mailto:ceki@qos.ch" target="_blank">ceki@qos.ch</a>>><div class="im"><br>
wrote:<br>
<br>
Hello,<br>
<br>
What is printed when you set the debug attribute of <configuration><br>
to true? Example:<br>
<br></div>
<configuration debug="true">...</__<u></u>configuration><div class="im"><br>
<br>
<br>
--<br>
Ceki<br>
65% of statistics are made up on the spot<br>
<br>
<br>
On 20.02.2013 21:11, Desmond Kirrane wrote:<br>
<br>
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></div>
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><div class="im"><br>
<br>
<maxHistory>30</maxHistory><br>
</rollingPolicy><br>
<encoder><br>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level<br>
%logger{36} -<br>
%msg%n</pattern><br>
</encoder><br>
</appender><br>
<br>
I've tried this and logback doesn't complain and file does<br>
rollover but<br>
just wondering is the prudent flag used?<br>
<br>
<br>
<br>
<br>
<br>
</div></blockquote>
<br><div class="im HOEnZb">
<br>
-- <br>
Ceki<br>
65% of statistics are made up on the spot<br></div><div class="HOEnZb"><div class="h5">
______________________________<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>
</div></div></blockquote></div><br></div>