Kafka客户端日志不断打印的问题
2017-09-26 11:36:12,907 DEBUG [kafka.consumer.ZookeeperConsumerConnector] - [group1_NEWHOM--], No updates to offsets since last commit.
2017-09-26 11:36:13,907 DEBUG [kafka.consumer.ZookeeperConsumerConnector] - [group1_NEWHOM--], No updates to offsets since last commit.
2017-09-26 11:36:14,906 DEBUG [kafka.consumer.ZookeeperConsumerConnector] - [group1_NEWHOM--], No updates to offsets since last commit.
2017-09-26 11:36:15,907 DEBUG [kafka.consumer.ZookeeperConsumerConnector] - [group1_NEWHOM--], No updates to offsets since last commit.
2017-09-26 11:36:16,906 DEBUG [kafka.consumer.ZookeeperConsumerConnector] - [group1_NEWHOM--], No updates to offsets since last commit.
消费者 在 Kafka服务端没有消息事一直打印这个日志,有什么办法让这个日志不打印吗
你好请问下,项目启动后,
[DEBUG] 2018-06-11 16:46:07,898 method:org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.run(KafkaMessageListenerContainer.java:534)
Received: 0 records
[DEBUG] 2018-06-11 16:46:07,898 method:org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.commitIfNecessary(KafkaMessageListenerContainer.java:931)
Commit list: {}
这些日志就在不停的打印,可我在配置文件里面没有找到监听的日志配置。
你这是debug级别额,找你的log4j.conf或者是logback.conf
调整日志级别。。
嗯 谢谢回复,已经解决。
由于系统需求不能调整日志级别,所以通过屏蔽kafka.consumer.ZookeeperConsumerConnector这个类打印日志 实现
log4j.logger.kafka.consumer.ZookeeperConsumerConnector=OFF
你好这段配置是写在那个配置文件上呢
log4j.properties
log4j.logger.org.apache.kafka.clients.FetchSessionHandler=OFF
log4j.logger.org.apache.kafka.clients.consumer.internals.Fetcher=OFF
log4j.logger.org.apache.kafka.clients.consumer.internals.Fetcher=OFF
log4j.logger.org.springframework.kafka.listener.KafkaMessageListenerContainer=OFF
log4j.logger.org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer=OFF
log4j.logger.org.apache.kafka.clients.consumer.internals.AbstractCoordinator=OFF
你的答案