Dear all:<div><br></div><div>I have the following configuration:</div><div><br></div><div><div> String filename = "notification"</div><div> appender("FILE", RollingFileAppender) {</div><div> file = (jbossHomeDir ? jbossHomeDir + "/" : "") + "log/" + filename + ".log"</div>
<div> rollingPolicy(TimeBasedRollingPolicy) {</div><div> fileNamePattern = filename + ".%d{yyyy-MM-dd_HH-mm}.log"</div><div> maxHistory = 30</div><div> }</div><div> encoder(PatternLayoutEncoder) {</div>
<div> pattern = logPattern</div><div> }</div><div> }</div><div><br></div><div>I have it set to roll every minute just for testing. It appears that logback is recognizing my configuration correctly:</div><div>
<br></div><div><div><div>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]</div><div>08:55:56,095 |-INFO in ch.qos.logback.classic.gaffer.ConfigurationDelegate@2d7d1491 - Naming appender as [FILE]</div>
<div>08:55:56,111 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy - No compression will be used</div><div>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</div>
<div>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'.</div><div>
08:55:56,117 |-INFO in c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - Roll-over every minute.</div><div>08:55:56,117 |-INFO in c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - Setting initial period to Thu May 26 08:55:27 EDT 2011</div>
</div></div><div><br></div><div>However, no rolling is happening. </div><div><br></div><div>Ideas?</div><div><br></div><div>Thanks,</div><br>-- Eric<br><br>
</div>