log4j.rootLogger=INFO,console,logfile
log4j.appender.console=org.apache.log4j.ConsoleAppender
log4j.appender.console.layout=org.apache.log4j.PatternLayout
log4j.appender.console.layout.ConversionPattern=[%x/%d{MM-dd HH:mm:ss}][%t][%-3p] %C{1}.%M(%L): %m%n
log4j.logger.org.apache=INFO
log4j.logger.com.mes=INFO
log4j.appender.logfile=org.apache.log4j.DailyRollingFileAppender
log4j.appender.logfile.DatePattern='.'yyyy-MM-dd
log4j.appender.logfile.File=/app/ndmall/logs/applogs/member-app.log
log4j.appender.logfile.layout=org.apache.log4j.PatternLayout
log4j.appender.logfile.layout.ConversionPattern=%-4r [%-3p] %d{yyyy-MM-dd HH:mm:ss,SSS} - %m%n
log4j.appender.logfile.Append=true
#日志最终改造,添加纯sql文件
log4j.logger.com.ibatis=debug,sqlfile
log4j.logger.com.caucho=ERROR
log4j.logger.java.sql.Connection=debug, sqlfile
log4j.logger.java.sql.Statement=debug, sqlfile
log4j.logger.java.sql.PreparedStatement=debug,sqlfile
log4j.appender.sqlfile=org.apache.log4j.DailyRollingFileAppender
log4j.appender.sqlfile.DatePattern='.'yyyy-MM-dd
log4j.appender.sqlfile.File=/app/ndmall/logs/applogsql/member-app-sql.log
log4j.appender.sqlfile.layout=org.apache.log4j.PatternLayout
log4j.appender.sqlfile.Append=true
log4j.appender.sqlfile.layout.ConversionPattern=库名 [%x/%d{MM-dd HH:mm:ss}][%t][%-3p] %C{1}.%M(%L): %m%n
log4j.logger.com.ibatis.common.jdbc.SimpleDataSource=debug, sqlfile
log4j.logger.com.ibatis.common.jdbc.ScriptRunner=debug,sqlfile
log4j.logger.com.ibatis.sqlmap.engine.impl.SqlMapClientDelegate=debug,sqlfile