[ https://issues.apache.org/jira/browse/KAFKA-18831?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chia-Ping Tsai resolved KAFKA-18831. ------------------------------------ Resolution: Fixed trunk: https://github.com/apache/kafka/commit/d31cbf59dee6a77c1c673db06900ecc238894ed7 4.0: https://github.com/apache/kafka/commit/d3791c39e3e426161ea4f8fd95ca3c97b049dd95 > Migrating to log4j2 introduce behavior changes of adjusting level dynamically > ----------------------------------------------------------------------------- > > Key: KAFKA-18831 > URL: https://issues.apache.org/jira/browse/KAFKA-18831 > Project: Kafka > Issue Type: Bug > Reporter: Chia-Ping Tsai > Assignee: TengYao Chi > Priority: Blocker > Fix For: 4.0.0 > > > There are two behavior changes introduced by log4j 2 > 1) > in log4j 1, users can't change the logger by parent if the logger is declared > by properties explicitly. For example, `org.apache.kafka.controller` has > level explicitly in the properties. Hence, we can't use > "org.apache.kafka=INFO" to change the level of `org.apache.kafka.controller` > to INFO. By contrast, log4j2 allows us to change all child loggers by the > parent logger. > 2) in log4j2, we can change the level of root to impact all loggers' level. > By contrast, log4j 1 can't. -- This message was sent by Atlassian Jira (v8.20.10#820010)