I customized the class to do exactly that. I put each day's logs in it's own directory and when the day rolledover, I called a deleteOldDirectories() method that deleted the directories I no longer needed.
My implementation method was to create a date string for each of the past N days that was the same format as the string that was used to create the directory. I then deleted all the directories at the appropriate level that weren't in that set of strings. alan -----Original Message----- From: WRIGHT, STEPHEN (SBCSI) [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 12, 2004 11:18 AM To: Log4J Users List Subject: Using MaxBackup with DailyRollingFileAppender I'm using DailyRollingFileAppender because I want to physically separate the log messages for each day. I'd also like to do something similar to the MaxBackupIndex in RollingFileAppender so that I only keep the last 7 days of log files. Any suggestions on how to limit the number of log files that get created by DailyRollingFileAppender? Thanks, Steve --------------------------------------------------------------------- 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]
