Thanks for the response. I guess I'll have to wait for 1.3 then. The following page on the wiki: http://wiki.apache.org/logging-log4j/DailyRollingFileAppender
indicates that somebody has extended DailyRolloingFileAppender to include this feature, but I'm not sure if this has been included in an official release? ----- Original Message ---- From: James Stauffer <[EMAIL PROTECTED]> To: Log4J Users List <log4j-user@logging.apache.org> Sent: Thursday, 1 March, 2007 11:04:10 AM Subject: Re: maxBackupIndex with DailyRollingFileAppender In 1.2 no, but I think that is supported in 1.3. In 1.2 you could set up a cron job to delete the extra files. On 3/1/07, DM <[EMAIL PROTECTED]> wrote: > Hi, > > When using a DailyRollingFileAppender, is there any way to specify the > maximum number of files which should be kept? I know that the > RollingFileAppender supports a maxBackupIndex property, but it seems this is > not supported by DailyRollingFileAppender. I don't want to use > RollingFileAppender because I want the files to rollover every day, rather > than when they reach a certain size. So my requirements are: > > - Roll files over daily > - Only keep the last 5 log files > > Thanks in Advance, > DM > > > > ___________________________________________________________ > Now you can scan emails quickly with a reading pane. Get the new Yahoo! Mail. > http://uk.docs.yahoo.com/nowyoucan.html > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- James Stauffer http://www.geocities.com/stauffer_james/ Are you good? Take the test at http://www.livingwaters.com/good/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___________________________________________________________ New Yahoo! Mail is the ultimate force in competitive emailing. Find out more at the Yahoo! Mail Championships. Plus: play games and win prizes. http://uk.rd.yahoo.com/evt=44106/*http://mail.yahoo.net/uk --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]