Log4j2.yaml configures loggers incorrectly
log4j2.yaml has a list of loggers. However, this is not a yaml list,
but a yaml map, so the configuration only picks up the last one.
This patch changes the loggers to a yaml list.
@@ -156,31 +156,29 @@ Configuration:
Loggers:
- Logger:
- name: org.apache.bookkeeper
- level: "${sys:bk.log.level}"
+ # Default root logger configuration
+ Root:
+ level: info
additivity: false
AppenderRef:
- - ref: BkRollingFile
+ - ref: "${sys:pulsar.log.appender}"
+ level: "${sys:pulsar.log.level}"
Logger:
- name: org.apache.distributedlog
+ - name: org.apache.bookkeeper
level: "${sys:bk.log.level}"
additivity: false
AppenderRef:
- ref: BkRollingFile
- # Default root logger configuration
- Root:
- level: info
+ - name: org.apache.distributedlog
+ level: "${sys:bk.log.level}"
additivity: false
AppenderRef:
- - ref: "${sys:pulsar.log.appender}"
- level: "${sys:pulsar.log.level}"
+ - ref: BkRollingFile
# Logger to inject filter script
-# Logger:
-# name: org.apache.bookkeeper.mledger.impl.ManagedLedgerImpl
+# - name: org.apache.bookkeeper.mledger.impl.ManagedLedgerImpl
# level: debug
# additivity: false
# AppenderRef:
