log4j.properties

来自「Java/J2EE application framework based on」· PROPERTIES 代码 · 共 20 行

PROPERTIES
20
字号
# Sample Log4J configuration for a typical Spring web app.
# Standard Log4J syntax applies.

# Log all messages down to level INFO.
# Write messages to console and to example.log file.
log4j.rootLogger=INFO, stdout, examplefile

# Defines the console logger.
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

# Defines the file logger, using the "web app root" system property
# (set by Log4jConfigListener) for a log file relative to the web app.
log4j.appender.examplefile=org.apache.log4j.FileAppender
log4j.appender.examplefile.File=${example.root}/WEB-INF/example.log
# Pattern to output: date priority [category] - message
log4j.appender.logfile.layout=org.apache.log4j.PatternLayout
log4j.appender.logfile.layout.ConversionPattern=%d %p [%c] - %m%n

⌨️ 快捷键说明

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