Kafka Consumer outputs excessive DEBUG statements to console (ecilpse)

前端 未结 4 561
我在风中等你
我在风中等你 2021-02-08 01:34

I\'m running some sample code from http://www.javaworld.com/article/3060078/big-data/big-data-messaging-with-kafka-part-1.html?page=2, and the kafkaconsumer is consuming from to

4条回答
  •  礼貌的吻别
    2021-02-08 02:29

    I found the solution under another question which deals with Kafka producers, but it's essentially the same problem: https://stackoverflow.com/a/49532152/2380553

    So I just run the following 3 lines at the beginning of my program:

    org.apache.log4j.Logger.getLogger("org").setLevel(Level.WARN);
    org.apache.log4j.Logger.getLogger("akka").setLevel(Level.WARN);
    org.apache.log4j.Logger.getLogger("kafka").setLevel(Level.WARN);
    

提交回复
热议问题