#\u914D\u7F6ELogger 
#--log4j.rootLogger=[level], appenderName1, appenderName2, ... 
#level\u5206\u4E3A: 
#       FATAL : 0 
#       ERROR : 3 
#       WARN  : 4 
#       INFO  : 6 
#       DEBUG : 7 
#       ALL : 8
#appenderName \u4EFB\u610F\u53D6 
# 
#\u914D\u7F6EAppender 
#--log4j.appender.appenderName= appenderClassName 
#--log4j.appender.appenderName.option1= value1 
#--........................................... 
#appenderClassName\u5FC5\u987B\u4E3A\u7C7B\u7684\u5168\u540D,log4j\u63D0\u4F9B\u4EE5\u4E0B\u51E0\u79CD\uFF1A 
#       org.apache.log4j.ConsoleAppender            : \u63A7\u5236\u53F0 
#       org.apache.log4j.FileAppender               : \u6587\u4EF6 
#       org.apache.log4j.DailyRollingFileAppender   : \u6BCF\u5929\u4EA7\u751F\u4E00\u4E2A\u65B0\u7684\u65E5\u5FD7\u6587\u4EF6 
#       org.apache.log4j.RollingFileAppender        : \u6587\u4EF6\u8FBE\u5230\u6307\u5B9A\u5927\u5C0F\u65F6\u4EA7\u751F\u4E00\u4E2A\u65B0\u7684\u65E5\u5FD7\u6587\u4EF6 
#       org.apache.log4j.WriterAppender             : \u5C06\u65E5\u5FD7\u4EE5\u6D41\u5F62\u5F0F\u53D1\u9001\u5230\u4EFB\u610F\u6307\u5B9A\u5730\u65B9 
# 
#option\u6839\u636EappenderClass\u7684\u4E0D\u540C\u800C\u6709\u6240\u533A\u522B\uFF0C\u4F46\u6709\u4E9B\u662F\u5171\u540C\u7684. 
#option\u4E3Alayout\u65F6\u6307\u5B9AappenderName\u7684\u5E03\u5C40 
#--log4j.appender.appenderName.layout= layoutClassName 
#--log4j.appender.appenderName.layout.option1= value1 
#--.................................................. 
#layoutClassName\u5FC5\u987B\u4E3A\u7C7B\u7684\u5168\u540D,log4j\u63D0\u4F9B\u4EE5\u4E0B\u51E0\u79CD\uFF1A 
#       org.apache.log4j.HTMLLayout     : \u4EE5HTML\u8868\u683C\u5F62\u5F0F\u5E03\u5C40 
#       org.apache.log4j.PatternLayout  : \u6307\u5B9A\u683C\u5F0F\u5E03\u5C40 
#       org.apache.log4j.SimpleLayout   : \u5305\u542B\u65E5\u5FD7\u7EA7\u522B\u548C\u4FE1\u606F\u7684\u5B57\u7B26\u4E32 
#       org.apache.log4j.TTCCLayout     : \u5305\u542B\u65E5\u5FD7\u4EA7\u751F\u7684\u65F6\u95F4\u3001\u7EBF\u7A0B\u3001\u7C7B\u522B\u7B49\u7B49\u4FE1\u606F 
# 
#option\u6839\u636ElayoutClass\u7684\u4E0D\u540C\u800C\u6709\u6240\u533A\u522B\uFF0C\u4F46\u6709\u4E9B\u662F\u5171\u540C\u7684. 
#option\u4E3AConversionPattern\u65F6\u6307\u5B9A\u5E03\u5C40\u683C\u5F0F. 
#--log4j.appender.appenderName.layout.ConversionPattern= PatternString 
#PatternString\u4E3A\u683C\u5F0F\u5B57\u7B26\u4E32\uFF0C\u5982\u4E0B 
#   %m : \u8981\u8F93\u51FA\u7684\u4FE1\u606F 
#   %p : \u8F93\u51FA\u7EA7\u522B 
#   %r : \u8F93\u51FA\u81EA\u5E94\u7528\u542F\u52A8\u5230\u8F93\u51FA\u8BE5log\u4FE1\u606F\u8017\u8D39\u7684\u6BEB\u79D2\u6570 
#   %c : \u8F93\u51FA\u6240\u5728\u7C7B\u5168\u540D 
#   %t : \u7EBF\u7A0B\u540D 
#   %n : \u6362\u884C\u7B26\uFF08\u6839\u636E\u5E73\u53F0\u4E0D\u540C\u800C\u4E0D\u540C\uFF09 
#   %d : \u8F93\u51FA\u65E5\u671F\u548C\u65F6\u95F4\uFF0C\u53EF\u4EE5\u6307\u5B9A\u683C\u5F0F\uFF0C\u5982: %d{yyyy MM dd HH:mm:ss} 
#   %l : \u8F93\u51FA\u65E5\u5FD7\u4E8B\u4EF6\u7684\u53D1\u751F\u4F4D\u7F6E\uFF0C\u5305\u62EC\u7C7B\u76EE\u540D\u3001\u53D1\u751F\u7684\u7EBF\u7A0B\uFF0C\u4EE5\u53CA\u5728\u4EE3\u7801\u4E2D\u7684\u884C\u6570\u3002

log4j2.formatMsgNoLookups=True
###setloglevels###
log4j.rootLogger=INFO,stdout,info,error
#log4j.rootLogger=DEBUG,info,error,stdout

##Console##
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}] [%X{log_trace_id}] [%p] [%t] [%l] : %m%n

##debug##
#log4j.logger.org.springframework.web=debug
log4j.logger.org.hibernate.SQL=INFO
log4j.logger.org.hibernate.type.descriptor.sql.BasicBinder=INFO
log4j.logger.org.hibernate.transaction=DEBUG
log4j.logger.org.hibernate.jdbc=DEBUG
log4j.logger.org.hibernate.connection.DriverManagerConnectionProvider=DEBUG
log4j.logger.com.gsst.cargotrans.edi.bean.FtpClientBean=DEBUG
log4j.logger.cn.com.yict.framemax.scheduler=DEBUG

##InfoLog## cn.com.yict.framemax.log4j.DailyRollingFileAppender
#\u5982\u679C\u9700\u8981\u8BB0\u5F55\u6587\u4EF6\u65E5\u5FD7,\u8BF7\u628A\u4E0B\u9762\u6CE8\u91CA#\u53F7\u53BB\u6389,\u5E76\u4FEE\u6539log4j.appender.info.file\u4E3A\u5B9E\u9645\u65E5\u5FD7\u8BB0\u5F55\u7684\u76EE\u5F55
log4j.appender.info=cn.com.yict.framemax.log4j.MyDailyRollingFileAppender
log4j.appender.info.file=/home/data/logs/info_log.log
log4j.appender.info.DatePattern='.'yyyy-MM-dd
#\u53EA\u4FDD\u755930\u5929\u7684\u65E5\u5FD7,\u5982\u679C\u8BBE\u7F6E0\u5219\u4FDD\u7559\u5168\u90E8\u65E5\u5FD7
log4j.appender.info.maxBackupIndex=30
log4j.appender.info.Append=true
log4j.appender.info.Threshold=ALL
log4j.appender.info.layout=org.apache.log4j.PatternLayout
log4j.appender.info.layout.ConversionPattern=[%d{yyyy-MM-dd HH:mm:ss.SSS}] [%X{log_trace_id}] [%p] [%t] [%l] : %m%n

##errorLog## cn.com.yict.framemax.log4j.DailyRollingFileAppender
#\u5982\u679C\u9700\u8981\u8BB0\u5F55\u6587\u4EF6\u65E5\u5FD7,\u8BF7\u628A\u4E0B\u9762\u6CE8\u91CA#\u53F7\u53BB\u6389,\u5E76\u4FEE\u6539log4j.appender.error.file\u4E3A\u5B9E\u9645\u65E5\u5FD7\u8BB0\u5F55\u7684\u76EE\u5F55
log4j.appender.error=cn.com.yict.framemax.log4j.MyDailyRollingFileAppender
log4j.appender.error.file=/home/data/logs/error_log.log
log4j.appender.error.DatePattern='.'yyyy-MM-dd
#\u53EA\u4FDD\u755930\u5929\u7684\u65E5\u5FD7,\u5982\u679C\u8BBE\u7F6E0\u5219\u4FDD\u7559\u5168\u90E8\u65E5\u5FD7
log4j.appender.error.maxBackupIndex=30
log4j.appender.error.Append=true
log4j.appender.error.Threshold=ERROR
log4j.appender.error.layout=org.apache.log4j.PatternLayout
log4j.appender.error.layout.ConversionPattern=[%d{yyyy-MM-dd HH:mm:ss.SSS}] [%X{log_trace_id}] [%p] [%t] [%l] : %m%n