### set log levels ###
log4j.rootLogger = Debug,Console,Debug,Info,Error
#console
log4j.appender.Console = org.apache.log4j.ConsoleAppender
log4j.appender.Console.Target = System.out
log4j.appender.Console.layout = org.apache.log4j.PatternLayout
log4j.appender.Console.layout.ConversionPattern = %d %p [%c] - %m%n
#debug
log4j.appender.Debug = org.apache.log4j.RollingFileAppender
log4j.appender.Debug.File = D:/logs/debug.log
log4j.appender.Debug.Append = true
log4j.appender.Debug.Threshold = DEBUG
log4j.appender.Debug.layout = org.apache.log4j.PatternLayout
log4j.appender.Debug.layout.ConversionPattern = %d %p [%c] - %m%n
#info
log4j.appender.Info=org.apache.log4j.DailyRollingFileAppender
log4j.appender.Info.DatePattern='.'yyyy-MM-dd
log4j.appender.Info.File=D:/logs/info.log
log4j.appender.Info.Append = true
log4j.appender.Info.Threshold = DEBUG
log4j.appender.Info.layout=org.apache.log4j.PatternLayout
log4j.appender.Info.layout.ConversionPattern=%d %p [%c] - %m%n
#error
log4j.appender.Error=org.apache.log4j.RollingFileAppender
log4j.appender.Error.MaxFileSize=5000KB
log4j.appender.Error.MaxBackupIndex=3
log4j.appender.Error.File=D:/logs/err.log
log4j.appender.Error.Threshold = ERROR
log4j.appender.Error.layout=org.apache.log4j.PatternLayout
log4j.appender.Error.layout.ConversionPattern=%d %p [%c] - %m%n
#ibatis
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
#hibernate
log4j.logger.org.hibernate=Debug
log4j.logger.org.hibernate.hql=Debug
log4j.logger.org.hibernate.hql.ast.AST=Debug
log4j.logger.org.hibernate.SQL=Debug
log4j.logger.org.hibernate.tool.hbm2ddl=Debug
log4j.logger.org.hibernate.type.descriptor.sql.BasicBinder=TRACE