You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Julie Gautier <ju...@yahoo.fr> on 2006/06/22 11:56:17 UTC

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: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org