mybatis 打印日志log4j.properties

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 [%t] %-5p [%c] - %m%n  

  

log4j.logger.java.sql.ResultSet=INFO  

log4j.logger.org.apache=INFO  

log4j.logger.java.sql.Connection=DEBUG  

log4j.logger.java.sql.Statement=DEBUG  

log4j.logger.java.sql.PreparedStatement=DEBUG 

 

 

----------------

放到src下

posted @ 2015-04-29 09:59  易大侠y  阅读(308)  评论(0编辑  收藏  举报