log4j.properties -配置:控制台 打印,sql打印

  |   0 评论   |   0 浏览

log4j.rootLogger=DEBUG,Console

#Console
log4j.appender.Console=org.apache.log4j.ConsoleAppender
log4j.appender.Console.layout=org.apache.log4j.PatternLayout
log4j.appender.Console.layout.ConversionPattern=%d %-5p [%c{5}] - %m%n

#\u8FC7\u6EE4
log4j.logger.org.mybatis=error
log4j.logger.org.apache=error
log4j.logger.org.hibernate=error
log4j.logger.org.springframework=error
log4j.logger.org.apache.ibatis.logging.jdbc=error