Permalink
Browse files

FLUME-1418. Improvement for Log4j configuration.

(Denny Ye via Mike Percy)
  • Loading branch information...
1 parent 2a55d67 commit 303076f2c4e87e5b37c84e6fe9c666eeb60dbf49 @mpercy mpercy committed Aug 7, 2012
Showing with 4 additions and 3 deletions.
  1. +4 −3 conf/log4j.properties
View
@@ -24,13 +24,14 @@
#flume.root.logger=DEBUG,console
flume.root.logger=INFO,LOGFILE
-flume.log.dir=.
+flume.log.dir=./logs
flume.log.file=flume.log
log4j.logger.org.apache.flume.lifecycle = INFO
log4j.logger.org.jboss = WARN
log4j.logger.org.mortbay = INFO
log4j.logger.org.apache.avro.ipc.NettyTransceiver = WARN
+log4j.logger.org.apache.hadoop = INFO
# Define the root logger to the system property "flume.root.logger".
log4j.rootLogger=${flume.root.logger}
@@ -45,11 +46,11 @@ log4j.appender.LOGFILE.MaxFileSize=100MB
log4j.appender.LOGFILE.MaxBackupIndex=10
log4j.appender.LOGFILE.File=${flume.log.dir}/${flume.log.file}
log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout
-log4j.appender.LOGFILE.layout.ConversionPattern=%d{ISO8601} %p %c{2}: %m%n
+log4j.appender.LOGFILE.layout.ConversionPattern=%d{dd MMM yyyy HH:mm:ss,SSS} %-5p [%t] (%C.%M:%L) %x - %m%n
#
# console
-# Add "console" to rootlogger above if you want to use this
+# Add "console" to rootlogger above if you want to use this
#
log4j.appender.console=org.apache.log4j.ConsoleAppender

0 comments on commit 303076f

Please sign in to comment.