You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

37 lines
1.8 KiB

#flume.root.logger=DEBUG,console
flume.root.logger=INFO,INFO-LOG,ERROR-LOG
flume.log.dir=../../log/flume
log4j.rootLogger=${flume.root.logger}
log4j.appender.INFO-LOG = org.apache.log4j.RollingFileAppender
log4j.appender.INFO-LOG.File = ${flume.log.dir}/flume-info-log.log
log4j.appender.INFO-LOG.Threshold = INFO
log4j.appender.INFO-LOG.layout = cn.thinkingdata.ta.logbus.exlog4j.ExPatternLayout
log4j.appender.INFO-LOG.layout.ConversionPattern =%d{dd MMM yyyy HH:mm:ss,SSS} %-5p [%t %T] (%C.%M:%L) %x - %m%n
log4j.appender.INFO-LOG.filter.F1=org.apache.log4j.varia.LevelRangeFilter
log4j.appender.INFO-LOG.MaxFileSize=15MB
log4j.appender.INFO-LOG.MaxBackupIndex=15
log4j.appender.INFO-LOG.filter.F1.LevelMin=INFO
log4j.appender.INFO-LOG.filter.F1.LevelMax=INFO
#error
log4j.appender.ERROR-LOG=org.apache.log4j.RollingFileAppender
log4j.appender.ERROR-LOG.Threshold=INFO
log4j.appender.ERROR-LOG.File=${flume.log.dir}/flume-error-log.log
log4j.appender.ERROR-LOG.layout=cn.thinkingdata.ta.logbus.exlog4j.ExPatternLayout
log4j.appender.ERROR-LOG.layout.ConversionPattern=%d{dd MMM yyyy HH:mm:ss,SSS} %-5p [%t %T] (%C.%M:%L) %x - %m%n
log4j.appender.ERROR-LOG.MaxFileSize=15MB
log4j.appender.ERROR-LOG.MaxBackupIndex=15
log4j.appender.ERROR-LOG.filter.F1=org.apache.log4j.varia.LevelRangeFilter
log4j.appender.ERROR-LOG.filter.F1.LevelMin=ERROR
log4j.appender.ERROR-LOG.filter.F1.LevelMax=ERROR
# console
# Add "console" to flume.root.logger above if you want to use this
log4j.appender.console=org.apache.log4j.ConsoleAppender
log4j.appender.console.target=System.err
#log4j.appender.console.layout=org.apache.log4j.PatternLayout
log4j.appender.console.layout=cn.thinkingdata.ta.logbus.exlog4j.ExPatternLayout
log4j.appender.console.layout.ConversionPattern=%d (%t %T) [%p - %l] %m%n