Hi all - it was my bad. My filename pattern was incorrect and put the rolled file in the wrong directory.<br clear="all"><br><div>Thanks Henning -</div><div><br>-- Eric<br><br>
<br><br><div class="gmail_quote">On Thu, May 26, 2011 at 10:08 AM, Henning Juva <span dir="ltr"><<a href="mailto:henning.juva@gmail.com">henning.juva@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Is rolling only triggered by an actual log event happening within the<br>
configured timeframe and not every minute by itself?<br>
<br>
--henning<br>
<br>
Sent from my iPhone<br>
<div><div></div><div class="h5"><br>
On 26. mai 2011, at 15:07, Eric Pederson <<a href="mailto:ericacm@gmail.com">ericacm@gmail.com</a>> wrote:<br>
<br>
> Dear all:<br>
><br>
> I have the following configuration:<br>
><br>
> String filename = "notification"<br>
> appender("FILE", RollingFileAppender) {<br>
> file = (jbossHomeDir ? jbossHomeDir + "/" : "") + "log/" + filename + ".log"<br>
> rollingPolicy(TimeBasedRollingPolicy) {<br>
> fileNamePattern = filename + ".%d{yyyy-MM-dd_HH-mm}.log"<br>
> maxHistory = 30<br>
> }<br>
> encoder(PatternLayoutEncoder) {<br>
> pattern = logPattern<br>
> }<br>
> }<br>
><br>
> I have it set to roll every minute just for testing. It appears that logback is recognizing my configuration correctly:<br>
><br>
> 08:55:56,095 |-INFO in ch.qos.logback.classic.gaffer.ConfigurationDelegate@2d7d1491 - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender]<br>
> 08:55:56,095 |-INFO in ch.qos.logback.classic.gaffer.ConfigurationDelegate@2d7d1491 - Naming appender as [FILE]<br>
> 08:55:56,111 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy - No compression will be used<br>
> 08:55:56,112 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy - Will use the pattern notification.%d{yyyy-MM-dd_HH-mm}.log for the active file<br>
> 08:55:56,117 |-INFO in c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - The date pattern is 'yyyy-MM-dd_HH-mm' from file name pattern 'notification.%d{yyyy-MM-dd_HH-mm}.log'.<br>
> 08:55:56,117 |-INFO in c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - Roll-over every minute.<br>
> 08:55:56,117 |-INFO in c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - Setting initial period to Thu May 26 08:55:27 EDT 2011<br>
><br>
> However, no rolling is happening.<br>
><br>
> Ideas?<br>
><br>
> Thanks,<br>
><br>
> -- Eric<br>
><br>
</div></div>> _______________________________________________<br>
> Logback-user mailing list<br>
> <a href="mailto:Logback-user@qos.ch">Logback-user@qos.ch</a><br>
> <a href="http://qos.ch/mailman/listinfo/logback-user" target="_blank">http://qos.ch/mailman/listinfo/logback-user</a><br>
_______________________________________________<br>
Logback-user mailing list<br>
<a href="mailto:Logback-user@qos.ch">Logback-user@qos.ch</a><br>
<a href="http://qos.ch/mailman/listinfo/logback-user" target="_blank">http://qos.ch/mailman/listinfo/logback-user</a><br>
</blockquote></div><br></div>