I am trying to use fluent api implementation: https://www.slf4j.org/manual.html#fluent in a spring boot project with logstash-logback-encoder.
implementation ('org.springframework.boot:spring-boot-starter-web')
implementation('net.logstash.logback:logstash-logback-encoder:7.2')
I tried to add slf4j like this.
implementation('org.slf4j:slf4j-api:2.0.3')
Getting the following error:
SLF4J: No SLF4J providers were found.
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See https://www.slf4j.org/codes.html#noProviders for further details.
SLF4J: Class path contains SLF4J bindings targeting slf4j-api versions 1.7.x or earlier.
SLF4J: Ignoring binding found at [jar:file:/home/prchowdh/.gradle/caches/modules-2/files-2.1/ch.qos.logback/logback-classic/1.2.7/3e89a85545181f1a3a9efc9516ca92658502505b/logback-classic-1.2.7.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See https://www.slf4j.org/codes.html#ignoredBindings for an explanation.
I understand, Spring has an internal dependency on logback and logback has a dependency on slf4j. Any guidance will be helpful.