Look at this
https://issues.apache.org/jira/browse/LOG4NET-27


Petr


2009/12/1 David Gerler <dger...@gmail.com>

>   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 what I have now:
>
>
>
>     <appender name="Communications"
> type="log4net.Appender.RollingFileAppender">
>
>                 <file value="c:/log/register/gis/communications.txt" />
>
>                 <appendToFile value="true" />
>
>                  <maxSizeRollBackups value="10" />
>
> <rollingStyle value="Date" />
>
>                  <datePattern value="yyyyMMdd-HHmm" />
>
>                 <layout type="log4net.Layout.PatternLayout">
>
>                                 <header value="[Header]&#xD;&#xA;" />
>
>                                 <footer value="[Footer]&#xD;&#xA;" />
>
>                                 <conversionPattern value="%date [%thread]
> %-5level %logger (%file:%line) - %message%newline" />
>
>                 </layout>
>
>     </appender>
>
>
>
> It doesn’t delete the files when I get to 10.
>

Reply via email to