log4j.properties

来自「学习dwr+struts2+spring进行开发的好例子」· PROPERTIES 代码 · 共 42 行

PROPERTIES
42
字号
#
# Log4J Settings for log4j 1.2.x (via jakarta-commons-logging)
#
# The five logging levels used by Log are (in order):
#
#   1. DEBUG (the least serious)
#   2. INFO
#   3. WARN
#   4. ERROR
#   5. FATAL (the most serious)
log4j.rootCategory=warn ,stdout, logfile
# Set root logger level to WARN and append to stdout
log4j.rootLogger=warn,stdout, R



log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout

# Pattern to output the caller's file name and line number.
log4j.appender.stdout.layout.ConversionPattern=%d %5p (%c:%L) - %m%n

log4j.appender.R=org.apache.log4j.DailyRollingFileAppender
log4j.appender.R.File=D:\\workspace\\eclipseEE\\workspace\\shtcw\\logs\\lotteryWeb.log
log4j.appender.R.File.DatePattern = '_'yyyyMMdd

log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%5p %d %c - %m%n

# Print only messages of level ERROR or above in the package noModule.
log4j.logger.noModule=FATAL
# lottery Web
log4j.logger.com.szhelper.lotteryWeb = INFO

# OpenSymphony Stuff
log4j.logger.com.opensymphony=INFO
log4j.logger.org.apache.struts2=INFO

# Spring Stuff
log4j.logger.org.springframework=INFO

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?