0
在我的應用程序中使用... 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