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




Asked on March 30, 2023
When I run my application in Eclipse, I have following error in console.

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

How to get rid of it?



Replied on March 30, 2023
You can solve the error by adding following dependencies.

    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-api</artifactId>
      <version>2.0.7</version>
    </dependency>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-simple</artifactId>
      <version>2.0.7</version>
      <scope>test</scope>
    </dependency>


Write Answer











©2024 concretepage.com | Privacy Policy | Contact Us