Disable Kafka Logs

Viewed 2073

Is it possible to disable logs in example after start project?

[main] INFO org.apache.kafka.clients.producer.ProducerConfig - ProducerConfig values: 
    acks = all
    batch.size = 16384
    buffer.memory = 33554432
    client.id = 
    compression.type = none
    connections.max.idle.ms = 540000
1 Answers

You just need to raise the logging level of org.apache.kafka.clients.producer.ProducerConfig. Something like log4j.logger.org.apache.kafka.clients.producer=WARN with log4j.

Other logging frameworks have similar configuration.

Related