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:[EMAIL PROTECTED]
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 <[EMAIL PROTECTED]> wrote:
>
> Does /log exist?
>
> Cheers,
> Philip.
>
> -----Original Message-----
> From: Praveen Kumar Hasthalapuram [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 08, 2006 8:22 AM
> To: [email protected]
> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]