logging-log4net-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Essin <es...@ieee.org>
Subject Re: Question on Date/Time based rolling
Date Wed, 06 Dec 2006 19:19:04 GMT
This sound like core functionality, It should probably be be included.

Dan

Peter Drier wrote:
> why not use any type of standard log file cleaner external to your 
> log4net application.. 
>
> Or write a routine at startup that checks for files older than xxx 
> days in a specific (log) directory and deletes them. 
>
> -Peter
>
> On 12/6/06, *Shireesh Thanneru* <thanneru@yahoo.com 
> <mailto:thanneru@yahoo.com>> wrote:
>
>     I need to have date based rolling for log files and want to keep
>     only the 30 log files (corresponding to the last 30 days). Is that
>     possible (with MaxSizeRollBackups or some other way)? If yes,
>     please send me the corresponding xml configuration for the
>     appender. Based on the RollingFileAppender documentation, it says
>
>     "*CAUTION*   
>     A maximum number of backup files when rolling on date/time
>     boundaries is not supported."
>     Is that still true? If yes, what are the other ways of achieving this?
>
>     Thanks in advance.
>
>     Shiressh Thanneru
>
>     ------------------------------------------------------------------------
>     Everyone is raving about the all-new Yahoo! Mail beta.
>     <http://us.rd.yahoo.com/evt=45083/*http://advision.webevents.yahoo.com/mailbeta>
>
>

Mime
View raw message