log4j.properties

来自「SpringSide开源代码」· PROPERTIES 代码 · 共 22 行

PROPERTIES
22
字号
# This is the configuring for logging displayed in the Application Server
log4j.rootCategory=INFO, stdout, logfile

#stdout configure
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern= %d %p [%c] - <%m>%n

#logfile configure
log4j.appender.logfile=org.apache.log4j.DailyRollingFileAppender
log4j.appender.logfile.File=../logs/extreme-web.log
log4j.appender.logfile.layout=org.apache.log4j.PatternLayout
log4j.appender.logfile.layout.ConversionPattern= %d %p [%c] - <%m>%n

# Changing the log level to DEBUG when debug
log4j.logger.org.springside.examples.extremeweb=DEBUG

# Control logging for other open source packages
log4j.logger.org.springframework=WARN


⌨️ 快捷键说明

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