在我的应用程序中使用...log4j 文件附加程序无法正常工作...我的日志文件大小保持 3000kB,之后新的日志文件没有创建并且它覆盖了现有的日志文件...
它没有创建 loggy.log、loggy.log1、loggy.log2 ....
当它达到 3000KB 时,它会在 loggy.log 中覆盖...
会是什么问题...
这是我的 log4j.properties
log4j.watch=true
log4j.readtime=30000
log4j.rootCategory=DEBUG, applicationlogging
log4j.rootCategory=DEBUG, strutslogging
log4j.category.applicationlogging = DEBUG, applicationlogging
##set logging level for HttpClient
log4j.logger.org.apache.commons.httpclient=DEBUG
log4j.logger.httpclient.wire.header=OFF
log4j.logger.httpclient.wire.content=OFF
log4j.additivity.applicationlogging = false
log4j.additivity.strutslogging = false
# inven.log
log4j.appender.applicationlogging=org.apache.log4j.RollingFileAppender
#log4j.appender.applicationlogging.File=C:/Program Files/Apache Software Foundation/Tomcat6.0/webapps/Project/WEB-INF/logs/loggy.log
log4j.appender.applicationlogging.File=E:/Final/Project/WebContent/WEB-INF/logs/loggy.log
#og4j.appender.applicationlogging.File=C:/Program Files (x86)/Apache Software Foundation/Tomcat 6.0/webapps/Project/WEB-INF/logs/loggy.log
log4j.appender.applicationlogging.MaxFileSize=3000KB
log4j.appender.applicationlogging.MaxBackupIndex=50
log4j.appender.applicationlogging.layout=org.apache.log4j.PatternLayout
log4j.appender.applicationlogging.layout.ConversionPattern=%d - %m%n