Hello Herrmann

 

I don't think that works right now - at least not in a way such that I would
trust it. The trouble lies in situations where the application is stopped
for an arbitrary amount of time. It might become computationally intensive
to find every file created by the logger and the chance of getting false
positives is high and thus files might get deleted that shouldn't be deleted
at all.

 

The overall consensus on this topic was (and probably is) that the rolling
file appender must be rewritten. But that's an open issue for quite a long
time now. The reason for that is probably that the current implementation of
the rolling file appender works just fine for most use cases and the missing
features were no show-stopper to anyone yet. :)

 

JMTC

Cheers

 

Von: Herrmann, David G [mailto:david.g.herrm...@intel.com] 
Gesendet: Mittwoch, 7. Mai 2014 23:32
An: 'Log4NET User'
Betreff: Rolling File Appender by date

 

I have my log4net configured to roll the file each day. Is there a way to
specify the maximum number of files to keep before they get deleted? In
other words, can I use the following when rolling based on Date:

 

<maxSizeRollBackups value="10" />

 

Or is that only available when rolling the file based on size?

Thank you.

-Dave Herrmann

Reply via email to