Why don't you start with a smaller value for MaxBackupIndex, say 2 or 3.
Similarly, try 10KB instead of 20MB. I also suggest you look at log4j 
internal output
by adding the following directive to your conf file.

log4j.debug=true

Let us know if it does or does not work.

At 10:11 22.05.2002 -0400, Roland Chan wrote:
>Hello,
>
>We've recently modified a FileAppender to a RollingFileAppender, here is
>our config:
>
>log4j.appender.trace=org.apache.log4j.RollingFileAppender
>log4j.appender.trace.File=/tomcat/logs/acmeLog
>log4j.appender.trace.MaxFileSize=20MB
>log4j.appender.trace.MaxBackupIndex=100
>log4j.appender.trace.layout=org.apache.log4j.PatternLayout
>log4j.appender.trace.layout.ConversionPattern=%d{ISO8601} [%9t] %-5p
>%c{1} %x - %m%n
>log4j.appender.trace.Threshold=DEBUG
>
>Our problem is that the backup file is not being created.  Instead it is
>overwriting the acmeLog after it has reached it's max file size.  There
>are no acmeLog.n files being created.  Any glaring problems above?
>
>Please help, we'd like to very much use this appender in production at
>some point.
>
>Regards,
>Roland
>
>Software Developer, R&D
>CaseBank Technologies, Inc.
>1 Kenview Blvd.
>Brampton, ON  L6T 5E6
>(905) 792-1981 ext. 519
>

--
Ceki


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to