kafka中遇到SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder"
阿新 • • 發佈:2018-12-25
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
Failedto load class
, slf4j-simple.jar, slf4j-log4j12.jar, slf4j-jdk14.jar or logback-classic.jar on the class path should solve the problem.
SLF4J: Defaulting to no-operation (NOP) logger implementation
Failedto load class org.slf4j.impl.StaticLoggerBinder
This error is reported when the org.slf4j.impl.StaticLoggerBinder
class could not be loaded into memory. This happens when no appropriate SLF4J binding could be found on the class path. Placing one (and only
one) of slf4j-nop.jar
SINCE 1.6.0 As of SLF4J version 1.6, in the absence of a binding, SLF4J will default to a no-operation (NOP) logger implementation.
You can download SLF4J bindings from the project download page.
下載匹配的slf4j原始碼,然後將slf4j-nop.jar,slf4f-simple.jar, slf4j-log4j12.jar, slf4j-jdk14.jar中某一個而且只能是某一個放到呼叫類的路徑就可以了。