logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From paul womack <pwom...@papermule.co.uk>
Subject Re: BoundedDailyRollingFileAppender
Date Wed, 15 Feb 2006 09:20:40 GMT
Erick Dovale wrote:
> Hi there guys,
> I was needing an appender to roll files daily and to maintain a maximun 
> amount of log files like the RolliFileAppender does. There was the 
> DailyRollingFileAppender that was able to roll files daily but do not 
> have any functionality for the maximun number of files to keep. So I 
> wrote this BoundedDailyRollingFileAppender that takes a number of files 
> and delets the oldest log file when it is rolled if the max number of 
> files is reached.
> I just extended FileAppender and copied the whole content of the 
> DailyRollingFileAppender and added a method to delete the file. I am 
> willing to donate this class to log4j. I am using log4j-1.2.x
> If you are ineterested please let me know how to proceed.

I don't know about the "offical" stuff, but cosinder
this email a vote in your favour!

We (currently) use a cron script to purge the old ones...

   BugBear

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


Mime
View raw message