I've had a similar problem... It seems like maxBackupIndex doesn't like
any #'s greater then 5 in some circumstances.

Try increasing your log size and decreasing the # of indexes.  

See http://marc.theaimsgroup.com/?l=log4j-user&m=106321621416549&w=2 for
more information.

Jeremy 

-----Original Message-----
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Julie Gautier
Sent: Thursday, June 22, 2006 5:56 AM
To: [email protected]
Subject: MaxBackupIndex does not work

Hi all,
Here is my log4j.properties file : 

log4j.rootLogger=OFF,
log4j.logger.com.actessud=DEBUG, stdout, R

log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout 

# Pattern to output the caller's file name and line number. 
log4j.appender.stdout.layout.ConversionPattern=%d{dd MMM yyyy HH:mm:ss}
(%F:%
L) - %m%n

log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=C:\\test.log 

log4j.appender.R.MaxFileSize=50KB
log4j.appender.R.MaxBackupIndex=10

log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%d{dd MMM yyyy HH:mm:ss}
(%F:%L) - % m%n

But this does not work : I'm not able to keep the ten log files as
expected. 
What am I missing ?
Thanks a lot.


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

Important Notice to Recipients:
It is important that you do not use e-mail to request, authorize or effect the 
purchase or sale of any security or commodity, to send fund transfer 
instructions, or to effect any other transactions. Any such request, orders, or 
instructions that you send will not be accepted and will not be processed by 
Morgan Stanley.

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

Reply via email to