Search code examples
javaspring-bootapache-kafkaspring-cloud-zookeeper

how to skip Kafka and zookeeper logs in debug mode


Using spring boot application.yml and logback.xml property files.

I tried with below application.yml properties but its not working.

spring.logging.level.org.apache.kafka:
 clients.consumer.ConsumerConfig: INFO
 clients.producer.ProducerConfig: INFO
 common.utils.AppInfoParser: INFO

Solution

  • Try putting this in config file

    <logger name="org.apache.zookeeper" level="OFF"/>
    

    Similarly for kafka.