Do you know of a log4net appender which rolls on date, but let's you limit the total number of files
Posted
by Michal Drozdowicz
on Stack Overflow
See other posts from Stack Overflow
or by Michal Drozdowicz
Published on 2010-01-14T10:06:31Z
Indexed on
2010/03/12
17:47 UTC
Read the original article
Hit count: 268
Hi,
I need to define an appender for log4net in a way that I get one log file for each day, but the total number of files are limited to, let's say, 30. That is I want to keep only the logs not older then 30 days, delete the older ones.
I've tried doing it with RollingFileAppender, but it seems that specifying a limit of files to keep is not supported. Do you know of an alternative solution that I could use?
© Stack Overflow or respective owner