frankvicky opened a new pull request, #18185:
URL: https://github.com/apache/kafka/pull/18185

   JIRA: KAFKA-18242
   
   In log4j1, the `LogManager#getCurrentLoggers` method returns all loggers 
except for the root logger. Therefore, in the 
`org.apache.kafka.connect.runtime.Loggers#loggers` method, the root logger 
needs to be manually added back to the returned result.
   
   However, in the new log4j2, the `getCurrentLoggers` method no longer exists. 
Instead, the `LoggerContext.getConfiguration().getLoggers()` method is used, 
which returns all loggers, including the root logger. As a result, following 
the current logic in the `org.apache.kafka.connect.runtime.Loggers#loggers` 
method would result in a collection containing two root loggers.
   
   ### Committer Checklist (excluded from commit message)
   - [ ] Verify design and implementation 
   - [ ] Verify test coverage and CI build status
   - [ ] Verify documentation (including upgrade notes)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to