logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Sukianto <michael_sukia...@sigma.co.id>
Subject MaxBackupIndex in DailyRollingFileAppender
Date Thu, 03 Jul 2008 07:45:57 GMT
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

Any Solution?

Regards,
Michael

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Mime
View raw message