近日使用slf4j + log4j2 实现日志系统
报出以下错误
SLF4J: No SLF4J providers were found.
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#noProviders for further details.
SLF4J: Class path contains SLF4J bindings targeting slf4j-api versions prior to 1.8.
SLF4J: Ignoring binding found at
[jar:file:/D:/WorkPlace_Code/maven_repository/org/apache/logging/log4j/log4j-slf4j-impl/
2.12.1/log4j-slf4j-impl-2.12

在使用slf4j + log4j2构建日志系统时遇到错误'No SLF4J providers were found'。检查pom.xml文件后发现类路径存在针对slf4j-api 1.8之前版本的绑定。通过降低slf4j版本,问题得到解决。
3万+

被折叠的 条评论
为什么被折叠?



