logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Praveen Kumar Hasthalapuram <praveen.hast...@gmail.com>
Subject Re: Backup files are not getting created
Date Mon, 13 Feb 2006 16:50:08 GMT
Hi James,

I mean to say, file is getting rolled but not creating any backup file.
Eventhough i have corrected as you suggested like "MaxBackupIndex",
backup files are not getting created.

Thanks,
Praveen

On 2/9/06, James Stauffer <stauffer.james@gmail.com> wrote:
>
> What do you mean by "its rolling the same file".  Also, should
> "maxBackupIndex" be "MaxBackupIndex"?
>
> On 2/8/06, Praveen Kumar Hasthalapuram <praveen.hasthal@gmail.com> wrote:
> > Hi All,
> >
> > Backup files are not getting created. After reaching the 10mb its
> rolling
> > the same file.
> >
> > Is anything wrong with the configuration?
> >
> >    <appender name="P" class="org.apache.log4j.RollingFileAppender">
> >         <param name="Threshold" value="ERROR"/>
> >         <param name="File" value="sample.log"/>
> >         <param name="Append" value="true"/>
> >         <param name="MaxFileSize" value="10MB"/>
> >         <param name="maxBackupIndex" value="10"/>
> >         <layout class="org.apache.log4j.PatternLayout">
> >             <param name="ConversionPattern" value="%d{yyyy-MM-dd
> HH:mm:ss}
> > &lt;fsp&gt;%p %m%n"/>
> >         </layout>
> >         <filter class="org.apache.log4j.varia.DenyAllFilter"/>
> >     </appender>
> >
> > Thanks,
> > Praveen
> >
> >
>
>
> --
> James Stauffer
> Are you good? Take the test at http://www.livingwaters.com/good/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message