⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 log4j.properties

📁 spring的源代码
💻 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.rootCategory=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
log4j.appender.examplefile.layout=org.apache.log4j.PatternLayout
log4j.appender.examplefile.layout.ConversionPattern=%d %p %c - %m%n

⌨️ 快捷键说明

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