首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > SQL Server >

ibatis & mybatis log4j资料打印SQL语句和详细的执行过程

2012-06-30 
ibatis & mybatislog4j文件打印SQL语句和详细的执行过程log4j.rootLoggerDEBUG, stdout, fileout??? #log

ibatis & mybatis log4j文件打印SQL语句和详细的执行过程

log4j.rootLogger=DEBUG, stdout, fileout???
#log4j.logger.test=info??
#log4j.logger.org.apache.jasper = DEBUG??
#log4j.logger.org.apache.catalina.startup.TldConfig = DEBUG??
#log4j.logger.org.apache.catalina.session.ManagerBase = DEBUG??
??
log4j.logger.com.fiscal = DEBUG??
log4j.logger.com.system = 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.logger.java.sql.Connection = DEBUG??
log4j.logger.java.sql.Statement = DEBUG??
log4j.logger.java.sql.PreparedStatement = DEBUG, fileout???
log4j.logger.java.sql.ResultSet = DEBUG??
??
log4j.appender.stdout=org.apache.log4j.ConsoleAppender????
??
log4j.appender.fileout=org.apache.log4j.RollingFileAppender???
log4j.appender.fileout.File=C\:\\ibatis.log????
log4j.appender.fileout.MaxFileSize=10000KB????
??
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout????
log4j.appender.stdout.layout.ConversionPattern=[%-5p] %d{yyyy-MM-dd HH\:mm\:ss} \:%m%n????
log4j.appender.fileout.layout=org.apache.log4j.PatternLayout????
log4j.appender.fileout.layout.ConversionPattern=[%-5p]_%d{yyyy-MM-dd HH\:mm\:ss} \:%m%n???
??
#log4j.appender.stdout.layout=org.apache.log4j.SimpleLayout????
??
# log4j.logger.org=info??
#--------------------------------???

热点排行