merlimat closed pull request #1801: Log4j2.yaml configures loggers incorrectly
URL: https://github.com/apache/incubator-pulsar/pull/1801
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/conf/log4j2.yaml b/conf/log4j2.yaml
index cd0ec880b6..d98cd49220 100644
--- a/conf/log4j2.yaml
+++ b/conf/log4j2.yaml
@@ -156,20 +156,6 @@ Configuration:
 
   Loggers:
 
-    Logger:
-      name: org.apache.bookkeeper
-      level: "${sys:bk.log.level}"
-      additivity: false
-      AppenderRef:
-        - ref: BkRollingFile
-
-    Logger:
-      name: org.apache.distributedlog
-      level: "${sys:bk.log.level}"
-      additivity: false
-      AppenderRef:
-        - ref: BkRollingFile
-  
     # Default root logger configuration
     Root:
       level: info
@@ -177,17 +163,29 @@ Configuration:
       AppenderRef:
         - ref: "${sys:pulsar.log.appender}"
           level: "${sys:pulsar.log.level}"
+
+    Logger:
+      - name: org.apache.bookkeeper
+        level: "${sys:bk.log.level}"
+        additivity: false
+        AppenderRef:
+          - ref: BkRollingFile
+
+      - name: org.apache.distributedlog
+        level: "${sys:bk.log.level}"
+        additivity: false
+        AppenderRef:
+          - ref: BkRollingFile
     
     # Logger to inject filter script
-#    Logger:
-#      name: org.apache.bookkeeper.mledger.impl.ManagedLedgerImpl
-#      level: debug
-#      additivity: false
-#      AppenderRef:
-#        ref: "${sys:pulsar.log.appender}"
-#        ScriptFilter:
-#          onMatch: ACCEPT
-#          onMisMatch: DENY
-#          ScriptRef:
-#            ref: filter.js
+#     - name: org.apache.bookkeeper.mledger.impl.ManagedLedgerImpl
+#       level: debug
+#       additivity: false
+#       AppenderRef:
+#         ref: "${sys:pulsar.log.appender}"
+#         ScriptFilter:
+#           onMatch: ACCEPT
+#           onMisMatch: DENY
+#           ScriptRef:
+#             ref: filter.js
         


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to