confluentinc / cp-docker-images

[DEPRECATED] Docker images for Confluent Platform.
Apache License 2.0
1.14k stars 704 forks source link

How to totally disable loglevel `TRACE` #870

Open bolshoydi opened 4 years ago

bolshoydi commented 4 years ago

neither of the kind KAFKA_LOG4J_ROOT_LOGLEVEL: 'INFO' KAFKA_TOOLS_LOG4J_LOGLEVEL: 'INFO' KAFKA_LOG4J_LOGGERS: 'kafka:controller=WARN' doesn't helps. I still can see TRACE logs.

kafka_1      | [2020-08-14 15:46:47,045] INFO [Controller id=1] Processing automatic preferred replica leader election (kafka.controller.KafkaController)
kafka_1      | [2020-08-14 15:46:47,046] TRACE [Controller id=1] Checking need to trigger auto leader balancing (kafka.controller.KafkaController)
kafka_1      | [2020-08-14 15:46:47,054] DEBUG [Controller id=1] Topics not in preferred replica for broker 1 Map() (kafka.controller.KafkaController)
kafka_1      | [2020-08-14 15:46:47,057] TRACE [Controller id=1] Leader imbalance ratio for broker 1 is 0.0 (kafka.controller.KafkaController)
justinhaubrich commented 2 years ago

I have this same issue also, did you ever figure out how to hide those logs?

bolshoydi commented 1 year ago

unfortunately no.