diff --git a/src/main/java/io/strimzi/test/container/StrimziKafkaContainer.java b/src/main/java/io/strimzi/test/container/StrimziKafkaContainer.java index 0783904..241c721 100644 --- a/src/main/java/io/strimzi/test/container/StrimziKafkaContainer.java +++ b/src/main/java/io/strimzi/test/container/StrimziKafkaContainer.java @@ -829,7 +829,8 @@ protected StrimziKafkaContainer withClusterId(String clusterId) { } /** - * Configures the Kafka container to use the specified logging level for Kafka logs. + * Configures the Kafka container to use the specified logging level for Kafka logs + * and the io.strimzi logger. *

* This method generates a custom log4j.properties file with the desired logging level * and copies it into the Kafka container. By setting the logging level, you can control the verbosity @@ -848,6 +849,7 @@ protected StrimziKafkaContainer withClusterId(String clusterId) { */ public StrimziKafkaContainer withKafkaLog(Level level) { String log4jConfig = "log4j.rootLogger=" + level.name() + ", stdout\n" + + "log4j.logger.io.strimzi=" + level.name() + "\n" + "log4j.appender.stdout=org.apache.log4j.ConsoleAppender\n" + "log4j.appender.stdout.layout=org.apache.log4j.PatternLayout\n" + "log4j.appender.stdout.layout.ConversionPattern=[%d] %p %m (%c)%n\n";