# LOG4J配置
log4j.rootLogger=DEBUG, stdout, logfile, error

############################## 控制台日志配置 ##############################
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.Target=System.out
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss.SSS} %5p %c{1}:%L - %m%n

############################## 文件日志配置 ##############################
log4j.appender.logfile = org.apache.log4j.DailyRollingFileAppender
#日志输出格式，每天输出一个日志文件
log4j.appender.logfile.layout.ConversionPattern = %d{yyyy-MM-dd HH:mm:ss,SSS} %5p %c{1}:%L - %m%n
#日志布局格式
log4j.appender.logfile.layout = org.apache.log4j.PatternLayout
#日志文件路径 系统相对路径、绝对路径
#log4j.appender.logfile.File = /Users/waynewu/sunda/logs/spms.log
log4j.appender.logfile.File = ./logs/info.log
#日期后缀格式
log4j.appender.logfile.DatePattern = '_'yyyy-MM-dd'.log'
log4j.appender.logfile.Threshold = DEBUG
log4j.appender.logfile.Append = true
log4j.appender.logfile.Encoding = UTF-8

############################## Error 日志文件配置，错误信息单独存文件 ##############################
log4j.appender.error = org.apache.log4j.DailyRollingFileAppender
log4j.appender.error.layout = org.apache.log4j.PatternLayout
log4j.appender.error.layout.ConversionPattern = %d{yyyy-MM-dd HH:mm:ss,SSS} %5p %c{1}:%L - %m%n
log4j.appender.error.File = ./logs/error.log
#log4j.appender.error.File = /Users/waynewu/sunda/logs/spmsError.log
log4j.appender.error.DatePattern = '_'yyyy-MM-dd'.log'
log4j.appender.error.Threshold = ERROR
log4j.appender.error.Append = true
log4j.appender.error.Encoding = UTF-8