log4j.rootLogger=DEBUG, stdout, fileout
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=[%-5p] %d{yyyy-MM-dd HH\:mm\:ss} \:%m%n
#org.apache.log4j.DailyRollingFileAppender
#org.apache.log4j.RollingFileAppender
log4j.appender.fileout=org.apache.log4j.DailyRollingFileAppender
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.fileout.DatePattern='_'yyyy-MM-dd'.log'
log4j.appender.fileout.File=${catalina.home}/logs/xxx.log
log4j.appender.fileout.MaxFileSize=100000KB
log4j.appender.fileout.MaxBackupIndex=5
log4j.logger.com.ibatis = DEBUG
log4j.logger.com.ibatis.common.jdbc = DEBUG
log4j.logger.com.ibatis.common.jdbc.ScriptRunner = DEBUG
log4j.logger.com.ibatis.sqlmap.engine.impl.SqlMapClientDelegate = DEBUG
log4j.logger.java.sql.Statement = DEBUG
log4j.logger.java.sql.PreparedStatement = DEBUG, fileout
log4j.logger.java.sql.ResultSet =DEBUG