Browse Source

HDDS-478. Log files related to each daemon doesn't have proper startup and shutdown logs.
Contributed by Dinesh Chitlangia.

Anu Engineer 6 years ago
parent
commit
c1fe657a10
1 changed files with 9 additions and 5 deletions
  1. 9 5
      hadoop-ozone/common/src/main/conf/om-audit-log4j2.properties

+ 9 - 5
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)
 # TRACE (least specific, a lot of data)
 # ALL (least specific, all 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 File Appender with size & time thresholds.
 #Rolling is triggered when either threshold is breached.
 #Rolling is triggered when either threshold is breached.