logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thorbjørn Ravn Andersen <thunderax...@gmail.com>
Subject Re: DailyRollingFileAppender
Date Tue, 08 Jul 2008 11:52:29 GMT
michael@michyunz.co.cc skrev  den 08-07-2008 12:02:
> Hi,
> I am using DailyRollingFile Appender for manage my log.
> but i want to backup just the last 5 days?
> is that possible to do that?
The DailyRollingFileAppender does not keep track of versions back in 
time, so it cannot do what you want.  I would suggest running a cleaning 
job once in a while, either from within your java application or 
schedule an operating system task.

-- 
  Thorbjørn

---------------------------------------------------------------------
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