This looks good, but I have a follow-up question. While the log4j doc doesn't explain or even say this that I can see, the DatedFileAppender doc says it is better than the RollingFileAppender because you don't have to worry about whether the log file is closed. More importantly, it says that RollngFileAppender requires that a specific message be sent to the log to make it happen. What is that about? Are these the only two differences in terms of daily operation? Thanks.
Ken -----Original Message----- From: Burton Strauss [mailto:[EMAIL PROTECTED] Sent: Thursday, December 01, 2005 10:41 AM To: 'Log4J Users List' Subject: RE: Automatic "Daily" logging files Look at this: http://logging.apache.org/log4j/docs/api/org/apache/log4j/DailyRollingFi leAp pender.html I think that does what you want... And more... -----Burton -----Original Message----- From: Kenneth Litwak [mailto:[EMAIL PROTECTED] Sent: Thursday, December 01, 2005 12:35 PM To: [email protected] Subject: Automatic "Daily" logging files I am trying to change how we keep logged data. In my IBM mainframe days, there was a way to get automatic log files with names based upon the day, without ever bringing the application down. So there would be the following, simplified: ApplicationData11212005.log ApplicationData11222005.log ApplicationData11232005.log I'm trying to find a way to get log4j to do this. I don't' want to stop my application or have to manually have a sys admin make a backup of the current log files and give the copies a new name like this, but I want to be able to not have one huge log file and yet be able to go back to logging data from a specific date to track down errors. Can this be done automatically through configuration? Thanks. Ken Kenneth D. Litwak Software Engineer III IMT Azusa Pacific University 901 E. Alosta Azusa, CA 91702 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
