OK, I'll give it a try.

Dan

Peter Drier wrote:
Please feel free to add it and submit a patch.

I thought about adding it a while back, but came to a few challenges.. 1. With the different ways that a file can be rolled, there are more permutations than I originally thought 2. Most organizations already have a way to deal with rotation of log files. 3. To anyone worth their salt, log files are a religious item. Mess them up and be hated forever.

And given we have #2 at my organization, my interest waned.. If you are to write one, please make sure it's in the spirit of the existing MaxSizeRollBackups, and takes into account rollovers by both day and file size being exceeded/rolled.
Cheers,
Peter

On 12/6/06, *Daniel Essin* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:

    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* <[EMAIL PROTECTED]
    <mailto:[EMAIL PROTECTED]>> 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 aMaxSizeRollBackups or some
        other wy)? 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>



Reply via email to