<div dir="ltr">Hi Ceki, <div><br></div><div>Adding a `result.triggeringPolicy.start()` just before `result.start() ` solve the problem. </div><div><br></div><div>Thanks,</div><div>Paolo</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Feb 14, 2016 at 3:51 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"><br>
Hi Paolo,<br>
<br>
<br>
RollingAppender is stricter and will refuse to start if it's assigned TriggeringPolicy is not started, hence the message:<span class=""><br>
<br>
12:09:32,196 |-WARN in ch.qos.logback.core.rolling.RollingFileAppender[null] - TriggeringPolicy has not started. RollingFileAppender will not start<br>
<br></span>
You need to start the RollOnStartupPolicy.<span class=""><br>
<br>
--<br>
Ceki<br>
<br>
On 2/14/2016 11:37, Paolo Di Tommaso wrote:<br>
</span><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>
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>
<br>
<br>
<br></div></div><span class="">
_______________________________________________<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><br>
<br>
</span></blockquote><div class="HOEnZb"><div class="h5">
_______________________________________________<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></div></div></blockquote></div><br></div>