log4j生成的日志文件超过最大文件大小

时间:2014-03-05 08:57:23

标签: java log4j

log4j生成的日志文件超过文件大小.log4j在属性文件中配置。这是属性文件的内容。

# Set root logger level to DEBUG and its only appender to R.
log4j.rootCategory=DEBUG, LOGFILE
log4j.logger.org.apache.jasper.servlet.JspServlet=INFO
log4j.logger.org.springframework.web.servlet.view.JstlView=INFO
log4j.appender.LOGFILE=org.apache.log4j.RollingFileAppender
log4j.appender.LOGFILE.File= ./logs/app.log
# Control the maximum log file size
log4j.appender.LOGFILE.MaxFileSize=1024KB
# Archive log files (one backup file here)
log4j.appender.LOGFILE.MaxBackupIndex=1000
log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout
log4j.appender.LOGFILE.layout.ConversionPattern=%d %-5p [%c] %m%n
what could be the reason for this?

0 个答案:

没有答案