The RollingFileAppender currently does not support limiting the number of files 
rolled by date. It is a feature we would like to implement in future. 
At the moment to cleanup the old rolled files after a certain date you will 
need to write a separate app or script which you schedule to run every day 
which will delete the old files.

Nicko

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Sent: 22 April 2005 06:51
> To: [email protected]
> Subject: Re: Number of logs
> 
> Sanghamitra,
> 
> I could not find any text from you :-( Could you please send it again?
> Thanks!
> 
> Or does anyone else have any ideas? Thanks in advance!
> 
> 
> On 21.04.2005 22:07:12 Sanghamitra Chowdhury wrote:
> >--- Kai <[EMAIL PROTECTED]> wrote:
> >> Hi all,
> >>
> >> I just want to keep the logs from the last 10 days.
> >> Is it possible to
> >> configure this? Currently all logs are kept and none are 
> removed. But 
> >> I want to keep them named by the day, e.g. 'log 20050421.log'. Any 
> >> ideas? Thanks!
> >>
> >> <appender name="RollingFile"
> >> type="log4net.Appender.RollingFileAppender">
> >> <file value="Log " />
> >> <datepattern value="yyyyMMdd&quot;.log&quot;" /> <appendToFile 
> >> value="true" /> <maxSizeRollBackups value="10" /> <rollingStyle 
> >> value="Date" /> <staticLogFileName value="false" /> <layout 
> >> type="log4net.Layout.PatternLayout">
> >>    <param name="Header" value="-[New Start]-\r\n" />
> >>    <param name="Footer" value="-[End]-\r\n" />
> >>    <param name="ConversionPattern" value="%d [%t] %-5p %c 
> >> [%X{currentuser}.%X{instance}] - %m%n" /> </layout> </appender>
> 
> -- 
> +++ GMX - Die erste Adresse f�r Mail, Message, More +++
> 
> 1 GB Mailbox bereits in GMX FreeMail http://www.gmx.net/de/go/mail
> 

Reply via email to