SLF4J Failed to load class org slf4j impl StaticLoggerBinder

SLF4J Failed to load class org slf4j impl StaticLoggerBinder

If you are using log4j and getting exception SLF4J Failed to load class org slf4j impl StaticLoggerBinder it means slf4j-simple.jar is missing.

  • Exception details:
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.

Solution: If you are using maven please include below in your pom.xml:

<dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>slf4j-simple</artifactId>
        <version>1.6.1</version>
</dependency>
  • If you are not using maven then manually download and slf4j-simple.x.x.verion.jar from here
  • This should fix SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder” issue.

Leave a Reply

Your email address will not be published. Required fields are marked *