Hello all! This is about the fact that the DailyRollingAppender does not roll at the top-of-the-period that is set, but instead at the first log after that time has passed. This issue is the one listed in bug 10560 (DailyRollingAppender does not roll each period). I thought I might lay this here to check for opinions.
I propose a small fix to that situation: Attached is an extension of DailyRollingAppender that has an extra (optional) parameter that can be set to force the appender to rollover at the top of the set period. I called it TimeBasedRollingFileAppender to not call it DailyRollingAppenderWithTheOptionToForceRollover) but I am not specially attached to that name :D The idea is to either extend the current DailyRolling with the introduced option, or to include this appender along (maybe then finding it a better name :) If it is indeed a useful and acceptable update, please go ahead and include it (I believe CVS access is read-only to common mortals) What do you think? Comments, suggestions? Thank! -jo Other references to this issue: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10560 http://www.mail-archive.com/[EMAIL PROTECTED]/msg07211.html http://www.mail-archive.com/[EMAIL PROTECTED]/msg02008.html
TimeBasedRollingFileAppender.zip
Description: Zip archive
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]