log4j
#log4j.rootLogger=[level],appenderName,appenderName,...
#lever:ERROR>WARN>INFO>DEBUG
#youcanonlyhaveonerootLogger!
log4j.rootLogger=INFO,console,infoRecorder,errorRecorder,debugRecorder
#level=INFO,allcanbeoutput
#consoleissettobeaConsoleAppender
log4j.appender.console=org.apache.log4j.ConsoleAppender
#log4j.appender.console.Threshold=INFO
#consolehavefourpatterns
#org.apache.log4j.HTMLLayout
#org.apache.log4j.PatternLayout
#org.apache.log4j.SimpleLayout
#org.apache.log4j.TTCCLayout
log4j.appender.console.layout=org.apache.log4j.PatternLayout
#definetheoutputtype
log4j.appender.console.layout.ConversionPattern=%-d{yyyy-MM-ddHH:mm:ss}[%c]-[%p]%m%n
#fileissettooutputtoaextrafile
log4j.appender.infoRecorder=org.apache.log4j.RollingFileAppender
#theabsoluterouteofthelog4jfile
#log4j.appender.infoRecorder.File=${webapp.root}/logs/inforLog.log
log4j.appender.infoRecorder.File=e:/logs/inforLog.log
#thesize
log4j.appender.infoRecorder.MaxFileSize=500KB
#backupafile
log4j.appender.infoRecorder.MaxBackupIndex=1
log4j.appender.infoRecorder.layout=org.apache.log4j.PatternLayout
log4j.appender.infoRecorder.layout.ConversionPattern=%-d{yyyy-MM-ddHH:mm:ss}[%c]-[%p]-%m%n
log4j.appender.infoRecorder.Threshold=INFO
#thebiggerthanINFOwillbeoutputed.
#fileissettooutputtoaextrafile
log4j.appender.errorRecorder=org.apache.log4j.RollingFileAppender
#theabsoluterouteofthelog4jfile
#log4j.appender.errorRecorder.File=${webapp.root}/logs/errorLog.log
log4j.appender.errorRecorder.File=e:/logs/errorLog.log
#thesize
log4j.appender.errorRecorder.MaxFileSize=500KB
#backupafile
log4j.appender.errorRecorder.MaxBackupIndex=1
log4j.appender.errorRecorder.layout=org.apache.log4j.PatternLayout
log4j.appender.errorRecorder.layout.ConversionPattern=%-d{yyyy-MM-ddHH:mm:ss}[%c]-[%p]-%m%n
log4j.appender.errorRecorder.Threshold=ERROR
#thebiggerthanERRORwillbeoutputed.
#fileissettooutputtoaextrafile
log4j.appender.debugRecorder=org.apache.log4j.RollingFileAppender
#theabsoluterouteofthelog4jfile
#log4j.appender.debugRecorder.File=${webapp.root}/logs/debugLog.log
log4j.appender.debugRecorder.File=e:/logs/debugLog.log
#thesize
log4j.appender.debugRecorder.MaxFileSize=500KB
#backupafile
log4j.appender.debugRecorder.MaxBackupIndex=1
log4j.appender.debugRecorder.layout=org.apache.log4j.PatternLayout
log4j.appender.debugRecorder.layout.ConversionPattern=%-d{yyyy-MM-ddHH:mm:ss}[%c]-[%p]-%m%n
log4j.appender.debugRecorder.Threshold=DEBUG
##thebiggerthanDEBUGwillbeoutputed.
log4j.logger.org.springframework=INFO
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
log4j.logger.org.apache.tiles.impl.BasicTilesContainer=DEBUG