How to configure logging for Kafka producers?

后端 未结 5 1935
清酒与你
清酒与你 2021-02-04 03:00

I am using Kafka producer client and i don\'t have any log4j configuration in my project.

On running, the program prints a lot of Kafka Debug logs which i really don\'t

5条回答
  •  無奈伤痛
    2021-02-04 03:42

    I assumed you were talking about Kafka server logs. You can change log level to ERROR using following config

    log4j.logger.kafka=ERROR, kafkaAppender
    

    Hope this helps!

提交回复
热议问题