Friday

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".

BUG:
I was getting below error. I tried slf4j-api-1.7.5.jar, slf4j-api-1.6.1.jar but it didn't fix.

        SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".

FIX:
Use slf4j-jdk14 in addition to slf4j-api.
Download slf4j-jdk14-1.7.5.jar: 

https://mvnrepository.com/artifact/org.slf4j/slf4j-jdk14/1.7.5
For maven:

<dependency>
    <groupId>org.slf4j</groupId>
    <artifactId>slf4j-jdk14</artifactId>
    <version>1.7.5</version>
</dependency>

No comments:

Post a Comment