LOG_DIR=D:/logs/mybatis
log4j.appender.Console=org.apache.log4j.ConsoleAppender
log4j.appender.Console.layout=org.apache.log4j.PatternLayout
log4j.appender.Console.layout.ConversionPattern=[%d{MM-dd HH:mm:ss}] %m - \u3010%p\u3011 %l thread: %t%n
log4j.category.com.xjb.MainListener = all,MainListener,Console
log4j.appender.MainListener=org.apache.log4j.RollingFileAppender
log4j.appender.MainListener.File=${LOG_DIR}/pingan.log
log4j.appender.MainListener.MaxFileSize=5000000
log4j.appender.MainListener.layout=org.apache.log4j.PatternLayout
log4j.appender.MainListener.layout.ConversionPattern=[%d{MM-dd HH:mm:ss}] %m - \u3010%p\u3011 %l thread: %t%n
log4j.appender.sql=org.apache.log4j.RollingFileAppender
log4j.appender.sql.File=${LOG_DIR}/sql.log
log4j.appender.sql.MaxFileSize=5000000
log4j.appender.sql.layout=org.apache.log4j.PatternLayout
log4j.appender.sql.layout.ConversionPattern=[%d{MM-dd HH:mm:ss}] %m - \u3010%p\u3011 %l thread: %t%n
log4j.logger.Person=debug,sql,Console