flume-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hshreedha...@apache.org
Subject [39/50] [abbrv] git commit: FLUME-1418. Improvement for Log4j configuration.
Date Fri, 07 Sep 2012 23:28:53 GMT
FLUME-1418. Improvement for Log4j configuration.

(Denny Ye via Mike Percy)


Project: http://git-wip-us.apache.org/repos/asf/flume/repo
Commit: http://git-wip-us.apache.org/repos/asf/flume/commit/e349aee7
Tree: http://git-wip-us.apache.org/repos/asf/flume/tree/e349aee7
Diff: http://git-wip-us.apache.org/repos/asf/flume/diff/e349aee7

Branch: refs/heads/cdh-1.2.0+24_intuit
Commit: e349aee79df5e7f52c1ca2c169c97055d83aa23c
Parents: 677912b
Author: Mike Percy <mpercy@cloudera.com>
Authored: Tue Aug 7 10:45:03 2012 -0700
Committer: Mike Percy <mpercy@cloudera.com>
Committed: Fri Sep 7 14:03:03 2012 -0700

----------------------------------------------------------------------
 conf/log4j.properties |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flume/blob/e349aee7/conf/log4j.properties
----------------------------------------------------------------------
diff --git a/conf/log4j.properties b/conf/log4j.properties
index 2c476b3..e5db338 100644
--- a/conf/log4j.properties
+++ b/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


Mime
View raw message