log4j.xml profiling: print out the log of the operation of the database (including SQL parameters and the like) in the console

# 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

 

Published 23 original articles · won praise 1 · views 1633

Guess you like

Origin blog.csdn.net/weixin_43978412/article/details/103988293