Updated Branches: refs/heads/trunk 2a55d67f5 -> 303076f2c
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/303076f2 Tree: http://git-wip-us.apache.org/repos/asf/flume/tree/303076f2 Diff: http://git-wip-us.apache.org/repos/asf/flume/diff/303076f2 Branch: refs/heads/trunk Commit: 303076f2c4e87e5b37c84e6fe9c666eeb60dbf49 Parents: 2a55d67 Author: Mike Percy <[email protected]> Authored: Tue Aug 7 10:45:03 2012 -0700 Committer: Mike Percy <[email protected]> Committed: Tue Aug 7 10:47:20 2012 -0700 ---------------------------------------------------------------------- conf/log4j.properties | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flume/blob/303076f2/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
