Banq老师,请问为什么我用JdonFramework,一启动Tomcat就产生10多M的log文件?

06-05-15 beaveqq
Banq老师,请问为什么我用JdonFramework,一启动Tomcat就产生10多M的log文件?

我的log4j.properties

#
# Configures Log4j as the Tomcat system logger
#

#
# Configure the logger to output info level messages into a rolling log file.
#
log4j.rootLogger=DEBUG, R


log4j.logger.com.jdon=DEBUG
#
# To continue using the "catalina.out" file (which grows forever),
# comment out the above line and uncomment the next.
#
#log4j.rootLogger=INFO, A1

#
# Configuration for standard output ("catalina.out").
#
log4j.appender.A1=org.apache.log4j.ConsoleAppender
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
#
# Print the date in ISO 8601 format
#
log4j.appender.A1.layout.ConversionPattern=%d [%t] %-5p %c - %m%n

#
# Configuration for a rolling log file ("tomcat.log").
#
log4j.appender.R=org.apache.log4j.DailyRollingFileAppender
log4j.appender.R.DatePattern='.'yyyy-MM-dd
#
# Edit the next line to point to your logs directory.
# The last part of the name is the log file name.
#
log4j.appender.R.File=C:/tomcat5/logs/tomcat.log
log4j.appender.R.layout=org.apache.log4j.PatternLayout
#
# Print the date in ISO 8601 format
#
log4j.appender.R.layout.ConversionPattern=%d [%t] %-5p %c - %m%n

#
# Application logging options
#
#log4j.logger.org.apache=DEBUG
#log4j.logger.org.apache=INFO
#log4j.logger.org.apache.struts=DEBUG
#log4j.logger.org.apache.struts=INFO

<p>

banq
2006-05-15 18:04
将log4j.logger.com.jdon=DEBUG改为:

log4j.logger.com.jdon=ERROR

这样,jf输出就没有,只有你自己的输出。

如果你要关闭你自己的日志输出,同样依据上述原理写出包名设置为ERROR即可。

猜你喜欢