기타

[Error] SLF4J: No SLF4J providers were found.

Gh1324 2024. 3. 15. 10:19
728x90

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:/-/repository/ch/qos/logback/logback-classic/1.2.6/logback-classic-1.2.6.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#ignoredBindings for an explanation.
 
 
위 에러는 SLF4J 바인딩 버전이 맞지 않아 생기는 에러.
서비스 로그가 전혀 나오지 않는다. 
 
pom.xml

<dependency>
    <groupId>org.slf4j</groupId>
    <artifactId>slf4j-api</artifactId>
    <version>${slf4j.version}</version>
</dependency>

maven에서 slf4j 버전을 2.0.0 -> 1.7.9 로 변경후 실행하면 에러가 잘 나온다.

728x90