您的位置:首页 > 大数据 > 人工智能

kafka中遇到SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder"

2014-10-27 17:30 495 查看
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".

SLF4J: Defaulting to no-operation (NOP) logger implementation

SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for
further details.

错误提示到某个网址上去寻找更多细节,http://www.slf4j.org/codes.html#StaticLoggerBinder,页面中给出了错误出现的答案:


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, slf4j-simple.jar, slf4j-log4j12.jar, slf4j-jdk14.jar or logback-classic.jar on the class path should solve the problem.

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中某一个而且只能是某一个放到调用类的路径就可以了。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐