Can we disable log4j logs only for kafka
问题 i am using following log4j.properties log4j.rootLogger=DEBUG, stdout log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.Target=System.out log4j.appender.stdout.layout=org.apache.log4j.PatternLayout log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n I wanted to disable log messages for kafka only. where as display my log messages being logged. 回答1: You need to set the log level to OFF by adding this line: log4j.logger.org