📄 log4j.properties
字号:
# 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -