Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

FLUME-1418. Improvement for Log4j configuration.

(Denny Ye via Mike Percy)
  • Loading branch information...
commit 303076f2c4e87e5b37c84e6fe9c666eeb60dbf49 1 parent 2a55d67
@mpercy mpercy authored
Showing with 4 additions and 3 deletions.
  1. +4 −3 conf/log4j.properties
View
7 conf/log4j.properties
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.