log4j 调试时候配置

log4j 调试时候配置_第1张图片


代码如下:

# here is a debug config that control the console out put the sql sentence

log4j.rootLogger=info, stdout, log, errorlog  
log4j.Logger=search,Test  
 
 
log4j.logger.java.sql=DEBUG
log4j.logger.java.sql.ResultSet=DEBUG

log4j.logger.java.sql.Connection=DEBUG
log4j.logger.java.sql.Statement=DEBUG
log4j.logger.java.sql.PreparedStatement=DEBUG
log4j.logger.com.ibatis=DEBUG
log4j.logger.com.ibatis.common.jdbc.SimpleDataSource=DEBUG
log4j.logger.com.ibatis.common.jdbc.ScriptRunner=DEBUG
log4j.logger.com.ibatis.sqlmap.engine.impl.SqlMapClientDelegate=DEBUG
 


你可能感兴趣的:(log4j 调试时候配置)