<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-family: Calibri, sans-serif; "><div><span class="Apple-style-span" style="font-size: 16px; ">Hi Logback users!<br><div><br></div><div>I would like to store daily log files in the format:</div><div><br></div><div>/logs/%d{yyyy/MM}/app.%d{yyyyMMdd}.log</div><div><br></div><div>So that the end result is:</div><div><br></div><div>/logs/2012/02/app.20120228.log</div><div><br></div><div>That is I would like all daily log files for a given month in a single directory but each log file containing the full date.</div><div><br></div><div>However, when I configure this filename pattern using ch.qos.logback.core.rolling.TimeBasedRollingPolicy, logback bases the rolling policy only on the first pattern:</div><div><br></div><div> INFO in c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - The date pattern is 'yyyy/MM' from file name pattern '/logs/%d{yyyy/MM}/app.%d{yyyyMMdd}.log'.</div><div> INFO in c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - Rollover at start of every month.</div><div><br></div><table width="100%"><tbody><tr style="background-color: rgb(255,255,255)"><td height="0" style="height: 0px; ">Is it possible to accomplish this, even by just forcing the rollover to be daily (at midnight) independent of the filename pattern?  I have looked through the mailing lists, documentation, and source code and cannot figure out how or if it can be done.<br><br>Thanks,<br>Chris Lemper</td></tr></tbody></table></span></div></body></html>