log4j配置文件

# Global logging configuration 开发环境使用DEBUG,在运行过程中使用INFO
log4j.rootLogger=DEBUG, stdout
# Console output...
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%5p [%t] - %m%n
 
原文地址:https://www.cnblogs.com/ZJPaang/p/11184139.html