From c1fe657a106aaae3bdf81fa4add70962aaee165b Mon Sep 17 00:00:00 2001 From: Anu Engineer Date: Tue, 9 Oct 2018 16:44:32 -0700 Subject: [PATCH] HDDS-478. Log files related to each daemon doesn't have proper startup and shutdown logs. Contributed by Dinesh Chitlangia. --- .../src/main/conf/om-audit-log4j2.properties | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/hadoop-ozone/common/src/main/conf/om-audit-log4j2.properties b/hadoop-ozone/common/src/main/conf/om-audit-log4j2.properties index 7d097a081a..7be51acef0 100644 --- a/hadoop-ozone/common/src/main/conf/om-audit-log4j2.properties +++ b/hadoop-ozone/common/src/main/conf/om-audit-log4j2.properties @@ -52,11 +52,15 @@ filter.write.onMismatch=NEUTRAL # TRACE (least specific, a lot of data) # ALL (least specific, all data) -appenders=console, rolling -appender.console.type=Console -appender.console.name=STDOUT -appender.console.layout.type=PatternLayout -appender.console.layout.pattern=%d{DEFAULT} | %-5level | %c{1} | %msg | %throwable{3} %n +# Uncomment following section to enable logging to console appender also +#appenders=console, rolling +#appender.console.type=Console +#appender.console.name=STDOUT +#appender.console.layout.type=PatternLayout +#appender.console.layout.pattern=%d{DEFAULT} | %-5level | %c{1} | %msg | %throwable{3} %n + +# Comment this line when using both console and rolling appenders +appenders=rolling #Rolling File Appender with size & time thresholds. #Rolling is triggered when either threshold is breached.