diff --git a/src/commcare_cloud/ansible/roles/kafka/files/log4j_2.X.X.properties b/src/commcare_cloud/ansible/roles/kafka/files/log4j_2.X.X.properties index c13f735b6c..bd15b09c08 100644 --- a/src/commcare_cloud/ansible/roles/kafka/files/log4j_2.X.X.properties +++ b/src/commcare_cloud/ansible/roles/kafka/files/log4j_2.X.X.properties @@ -1,4 +1,4 @@ -log4j.rootLogger=INFO, stdout, kafkaAppender +log4j.rootLogger=INFO, kafkaAppender log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.layout=org.apache.log4j.PatternLayout @@ -71,13 +71,18 @@ log4j.additivity.kafka.request.logger=false log4j.logger.kafka.network.RequestChannel$=WARN, requestAppender log4j.additivity.kafka.network.RequestChannel$=false -log4j.logger.kafka.controller=TRACE, controllerAppender +# Change the line below to adjust KRaft mode controller logging +log4j.logger.org.apache.kafka.controller=INFO, controllerAppender +log4j.additivity.org.apache.kafka.controller=false + +# Change the line below to adjust ZK mode controller logging +log4j.logger.kafka.controller=INFO, controllerAppender log4j.additivity.kafka.controller=false log4j.logger.kafka.log.LogCleaner=INFO, cleanerAppender log4j.additivity.kafka.log.LogCleaner=false -log4j.logger.state.change.logger=TRACE, stateChangeAppender +log4j.logger.state.change.logger=INFO, stateChangeAppender log4j.additivity.state.change.logger=false # Access denials are logged at INFO level, change to DEBUG to also log allowed accesses