1. 程式人生 > >log4j最簡單的配置,可列印SQL到控制檯

log4j最簡單的配置,可列印SQL到控制檯

# Global logging configuration
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