增加数据库日志

This commit is contained in:
shuzheng 2016-11-26 21:53:13 +08:00
parent 21b96ff84f
commit 631bec1490
1 changed files with 13 additions and 1 deletions

View File

@ -9,3 +9,15 @@ log4j.appender.stdout.layout.ConversionPattern=%d [%t] %-5p [%c] - %m%n
#Spring logging configuration #Spring logging configuration
log4j.category.org.springframework = warn log4j.category.org.springframework = warn
#Druid logging configuration
log4j.logger.druid.sql=warn,stdout
log4j.logger.druid.sql.DataSource=warn,stdout
log4j.logger.druid.sql.Connection=warn,stdout
log4j.logger.druid.sql.Statement=warn,stdout
log4j.logger.druid.sql.ResultSet=warn,stdout
# MyBatis logging configuration
log4j.logger.com.zheng.cms.dao.mapper=debug
#log4j.logger.com.zheng.cms.dao.mapper.UserMapper=debug
#log4j.logger.com.zheng.cms.dao.mapper.UserMapper.selectUser=debug