You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by "hsy541@gmail.com" <hs...@gmail.com> on 2016/07/08 22:30:43 UTC

How do I turn off INFO log for embedded kafka server

Hey guys,

I have some unit test that has an embedded kafka server running. I want to
skip all debug and info logs from kafka server. But having this set in
log4j.properties does work. Some INFO log still keep showing up like this:

2016-07-08 18:01:14,288 [kafka-request-handler-4] INFO
cluster.Partition info - Partition [__consumer_offsets,4] on broker 0:
No checkpointed highwatermark is found for partition
[__consumer_offsets,4]
2016-07-08 18:01:14,286 [kafka-request-handler-2] INFO
cluster.Partition info - Partition [__consumer_offsets,39] on broker
100: No checkpointed highwatermark is found for partition
[__consumer_offsets,39]
2016-07-08 18:01:14,296 [kafka-request-handler-7] INFO  log.Log info -
Completed load of log __consumer_offsets-33 with log end offset 0
2016-07-08 18:01:14,310 [kafka-request-handler-2] INFO  log.Log info -
Completed load of log __consumer_offsets-4 with log end offset 0

Here is my setting:
log4j.logger.org.apache.kafka=WARN
log4j.logger.kafka=WARN
log4j.logger.org.apache.zookeeper=WARN


Zookeeper is fine, some of the logs from kafka brokers are also
skipped, but some of the logs are still showing up


Thanks,

Siyuan