dongjinleekr commented on pull request #7898:
URL: https://github.com/apache/kafka/pull/7898#issuecomment-1028778134


   Hi @Indupa,
   
   1. Sure, log4j 1.x is removed entirely. It is still defined in 
`build.gradle` for `log4j-appender`, deprecated with KIP-719, but not included 
in the classpath. (see below)
   
![20220203-173421](https://user-images.githubusercontent.com/2375128/152315500-8ce8706c-56f4-4e08-a372-5249dd69c773.png)
   
   2. As you can see here, this patch includes both of log4j 1.x and 2.x 
properties files. But it runs with 1.x properties file by default for backward 
compatibility. To use log4j2 properties, set `KAFKA_LOG4J_OPTS` like the 
logging message:
   
   ```
   To use log4j 2.x configuration, run with: 'set 
KAFKA_LOG4J_OPTS=-Dlog4j.configurationFile=file:C:\kafka/config/tools-log4j2.properties'
   ```
   
   You can use included `config/log4j2.properties` for 
`TimeBasedTriggeringPolicy`. Please update it following your use case.


-- 
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