logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Javier Gonzalez" <jagon...@gmail.com>
Subject Re: Backup files are not created
Date Thu, 09 Mar 2006 17:31:23 GMT
Are you sure you are hitting the 10MB log file size?

On 3/9/06, Praveen Kumar Hasthalapuram <praveen.hasthal@gmail.com> wrote:
>
> Yes, did changes as you said.
> No change :-(
>
> Thanks,
> Praveen
>
>
> On 3/8/06, Philip Denno <pdenno@tsi.bc.ca> wrote:
> >
> > Configuration looks OK. You might try removing the line:
> >
> > <param name="Append" value="true"/>
> >
> > And also change the line:
> >
> > <priority value="all"/>
> >
> > To
> >
> > <level value="DEBUG"/>
> >
> > And see if that changes the behaviour.
> >
> > Cheers,
> > Philip.
> >
> >
> > -----Original Message-----
> > From: Praveen Kumar Hasthalapuram [mailto:praveen.hasthal@gmail.com]
> > Sent: Wednesday, March 08, 2006 9:55 AM
> > To: Log4J Users List
> > Subject: Re: Backup files are not created
> >
> > Yes, it exits.
> > Able to log into /log/file1.log
> >
> > Thanks,
> > - Praveen
> >
> > On 3/8/06, Philip Denno <pdenno@tsi.bc.ca> wrote:
> > >
> > > Does /log exist?
> > >
> > > Cheers,
> > > Philip.
> > >
> > > -----Original Message-----
> > > From: Praveen Kumar Hasthalapuram [mailto:praveen.hasthal@gmail.com]
> > > Sent: Wednesday, March 08, 2006 8:22 AM
> > > To: log4j-user@logging.apache.org
> > > Subject: Backup files are not created
> > >
> > > Hi ,
> > >
> > > Eventhough i have given value for MaxBackupIndex to 10, it is not
> > > creating backup files.
> > > What could be the problem? Anything wrong with the configuration?
> > >
> > > This is sample configuration:
> > >
> > >   <appender name="APP" class="org.apache.log4j.RollingFileAppender">
> > >        <param name="File" value="/log/file1.log"/>
> > >        <param name="Append" value="true"/>
> > >        <param name="MaxFileSize" value="10MB"/>
> > >        <param name="MaxBackupIndex" value="5"/>
> > >        <layout class="org.apache.log4j.PatternLayout">
> > >            <param name="ConversionPattern" value="%d{dd-MMM-yyyy
> > > HH:mm:ss} %p %m%n"/>
> > >        </layout>
> > >    </appender>
> > >
> > >    <category name="LOGGER">
> > >            <priority value="all"/>
> > >            <appender-ref ref="APP"/>
> > >    </category>
> > >
> > > Thanks,
> > > Praveen
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> > > For additional commands, e-mail: log4j-user-help@logging.apache.org
> > >
> > >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> > For additional commands, e-mail: log4j-user-help@logging.apache.org
> >
> >
>
>


--
Javier González Nicolini

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