TengYao Chi created KAFKA-18804: ----------------------------------- Summary: Remove slf4j warning when using tool script. Key: KAFKA-18804 URL: https://issues.apache.org/jira/browse/KAFKA-18804 Project: Kafka Issue Type: Improvement Reporter: TengYao Chi Assignee: TengYao Chi
Currently, when running tools scripts, we encounter multiple SLF4J binding warnings: ``` SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/home/yungh/kafka/kafka_fork/kafka_test/core/build/dependant-libs-2.13.15/log4j-slf4j-impl-2.24.1.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/home/yungh/kafka/kafka_fork/kafka_test/tools/build/dependant-libs-2.13.15/log4j-slf4j-impl-2.24.1.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory] ``` This issue occurs because we have included multiple SLF4J implementation libraries in the project. We can resolve this by modifying the `copyDependantLibs` task in gradle. -- This message was sent by Atlassian Jira (v8.20.10#820010)