Look at this
https://issues.apache.org/jira/browse/LOG4NET-27
Petr
2009/12/1 David Gerler
> How do I make it only keep a certain number of files when using the
> rollingstyle = date? I’ve looked on the website and have not been able to
> find an example of anything talking about it. This is
nt to have a week worth of logs - come next Monday, for
> ex, and I'd like to start a new Monday.log file.
>
>
>
>
> -Original Message-
> From: Andrew Elmhorst [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, December 08, 2004 9:14 AM
> To: 'Log4NET Use
I'd like to start a new Monday.log file.
-Original Message-
From: Andrew Elmhorst [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 08, 2004 9:14 AM
To: 'Log4NET User'
Subject: RE: Using RollingFileAppender
Try setting the DatePattern property on the RollingFileAppen
Try setting the DatePattern property on the RollingFileAppender to
"'.''.log'"
This should create backup log files in the pattern [logfilename].Monday.log.
This should get you close to what you want. You can also set the
StaticLogFileName to false and the RollingFileAppender should write direc