JAVA 简单日志配置
log4j.rootLogger=INFO,stdout,InfoLogFile,ErrrorLogFile
##输出 info级别 日志
log4j.appender.InfoLogFile=org.apache.log4j.DailyRollingFileAppender
log4j.appender.InfoLogFile.File=logs/liuInfoLog
log4j.appender.InfoLogFile.DatePattern='.'yyyy-MM-dd'.log'
log4j.appender.InfoLogFile.Append=true
log4j.appender.InfoLogFile.Threshold=INFO
log4j.appender.InfoLogFile.layout=org.apache.log4j.PatternLayout
log4j.appender.InfoLogFile.layout.ConversionPattern= [%5p] [liuInfoLog] %d{yyyy-MM-dd HH:mm:ss}: %-4r [%t] ( %F,%L ) - %m%n
##输出 error级别日志
log4j.appender.ErrrorLogFile=org.apache.log4j.DailyRollingFileAppender
log4j.appender.ErrrorLogFile.File=logs/liuErrorLog
log4j.appender.ErrrorLogFile.DatePattern='.'yyyy-MM-dd'.log'
log4j.appender.ErrrorLogFile.Append=true
log4j.appender.ErrrorLogFile.Threshold=ERROR
log4j.appender.ErrrorLogFile.layout=org.apache.log4j.PatternLayout
log4j.appender.ErrrorLogFile.layout.ConversionPattern= [%5p] [liuErrorLog] %d{yyyy-MM-dd HH:mm:ss}: %-4r [%t] ( %F,%L ) - %m%n
##SellerGoodsSynchService start
log4j.logger.com.woyo.mall.service.search.SellerGoodsSynchService=FATAL,SynchFailFile
log4j.appender.SynchFailFile=org.apache.log4j.DailyRollingFileAppender
log4j.appender.SynchFailFile.File=logs/malllogs/mall_synchFailFile
log4j.appender.SynchFailFile.DatePattern='.'yyyy-MM-dd-HH'.log'
log4j.appender.SynchFailFile.Append=true
log4j.appender.SynchFailFile.Threshold=FATAL
log4j.appender.SynchFailFile.layout=org.apache.log4j.PatternLayout
log4j.appender.SynchFailFile.layout.ConversionPattern= [%5p] [mall_active] %d{yyyy-MM-dd HH:mm:ss}: %-4r [%t] ( %F,%L ) - %m%n
##SellerGoodsSynchService end