org.slf4j.impl.StaticLoggerBinder code example

Example 1: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation

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

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

// Using Kotlin

implementation("org.slf4j:slf4j-api:1.7.5")
implementation("org.slf4j:slf4j-log4j12:1.7.5")

Tags:

Java Example