<div dir="ltr">Hi Ceki, <div><br></div><div>It prints the following: </div><div><br></div><div><div><font face="monospace, monospace">12:09:31,787 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy]</font></div><div><font face="monospace, monospace">12:09:31,787 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]</font></div><div><font face="monospace, monospace">12:09:31,787 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.xml]</font></div><div><font face="monospace, monospace">12:09:31,789 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Setting up default configuration.</font></div><div><font face="monospace, monospace">12:09:32,192 |-INFO in ch.qos.logback.core.rolling.FixedWindowRollingPolicy@2cd76f31 - No compression will be used</font></div><div><font face="monospace, monospace">12:09:32,196 |-WARN in ch.qos.logback.core.rolling.RollingFileAppender[null] - TriggeringPolicy has not started. RollingFileAppender will not start</font></div></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Feb 14, 2016 at 12:06 PM, Ceki Gulcu <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">Hi Paolo,<br>
<br>
The logic should stay the same. What do status messages say? See<br>
<br>
<a href="http://logback.qos.ch/manual/configuration.html#statusListener" rel="noreferrer" target="_blank">http://logback.qos.ch/manual/configuration.html#statusListener</a><br>
<br>
or add the following after result.start()<br>
<br>
LoggerContext lc = (LoggerContext) LoggerFactory.getILoggerFactory();<br>
StatusPrinter.print(lc);<br>
<br>
--<br>
Ceki<div><div class="h5"><br>
<br>
On 2/14/2016 11:37, Paolo Di Tommaso wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
After upgrading from Logback 1.1.3 to version 1.1.5 I've noticed that it<br>
isn't creating the log file any more.<br>
<br>
I'm using a RollingFileAppender configured using a piece of code like this:<br>
<br>
RollingFileAppender result = logFileName ? new RollingFileAppender()<br>
: null<br>
result.file = logFileName<br>
<br>
def rollingPolicy = new FixedWindowRollingPolicy( )<br>
rollingPolicy.fileNamePattern = "${logFileName}.%i"<br>
rollingPolicy.setContext(loggerContext)<br>
rollingPolicy.setParent(result)<br>
rollingPolicy.setMinIndex(1)<br>
rollingPolicy.setMaxIndex(9)<br>
rollingPolicy.start()<br>
<br>
result.rollingPolicy = rollingPolicy<br>
result.encoder = createEncoder()<br>
result.setContext(loggerContext)<br>
result.setTriggeringPolicy(new RollOnStartupPolicy())<br>
result.start()<br>
<br>
<br>
<br>
Something has changed that logic ?<br>
<br>
<br>
Cheers,<br>
Paolo<br>
<br>
</blockquote></div></div>
_______________________________________________<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" rel="noreferrer" target="_blank">http://mailman.qos.ch/mailman/listinfo/logback-user</a></blockquote></div><br></div>