log4j.appender.MAIN_LOG.File=${catalina.base}/logs/main.log
log4j.appender.MAIN_LOG=org.apache.log4j.RollingFi leAppender
log4j.appender.MAIN_LOG.layout=com.ingdirect.util. log.Log4JSimpleLayout
log4j.appender.MAIN_LOG.MaxFileSize=100KB
log4j.appender.MAIN_LOG.MaxBackupIndex=99
 
log4j.rootLogger=INFO, MAIN_LOG

And the logs produced are:

main.log
main.log.4

I see main.log.1 overwritten by main.log.2 which is overwritten by main.log.3, etc


Can anyone tell me what's the issue ?

Thanks