How to configure logging for Kafka producers?

后端 未结 5 1881
清酒与你
清酒与你 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:40

    Try adding logging.level.org.apache.kafka: DEBUG into your clients configuration properties. I am using Springboot and this is the format. Use appropriate format for your clients program.

提交回复
热议问题