I have written a new Log4j appender (DatedFileAppender) that works in the
same manner as the Tomcat FileLogger. That is, log file names always contain
today's date instead of being renamed in the manner of the
DailyRollingFileAppender. While this distinction seems minor, it means you
can reliably copy, compress, remove or manipulate a day's log file shortly
after midnight. With the DailyRollingFileAppender, a day's log file is not
renamed until the first message is logged some time after midnight.
The software and accompanying documentation is available here:
http://minaret.biz/tips/datedFileAppender.html
For those of you using Tomcat, I also wrote up a technical tip on Tomcat
logging and using Log4j with Tomcat (with tips for Velocity users). Please see:
http://minaret.biz/tips/tomcatLogging.html
Enjoy.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]