nizhikov commented on code in PR #14588:
URL: https://github.com/apache/kafka/pull/14588#discussion_r1387236588


##########
tools/src/test/resources/log4j-off.properties:
##########
@@ -0,0 +1,26 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more

Review Comment:
   I removed `log4j-off.properties` file and use `log4j.properties` directly 
from core module.
   Alternatively we can configure logging by hardcoded properties in tool 
initializer. Like the following
   Please, write me what is the best way to go.
   
   ```
           Properties logProps = new Properties();
   
           logProps.put("log4j.rootLogger", "OFF, stdout");
           logProps.put("log4j.appender.stdout", 
"org.apache.log4j.ConsoleAppender");
           logProps.put("log4j.appender.stdout.layout", 
"org.apache.log4j.PatternLayout");
           logProps.put("log4j.appender.stdout.layout.ConversionPattern", "[%d] 
%p %m (%c:%L)%n");
           logProps.put("log4j.logger.kafka", "WARN");
           logProps.put("log4j.logger.org.apache.kafka", "WARN");
   ```



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