fzakaria / slf4j-timbre

SLF4J binding for Clojure's Timbre
Eclipse Public License 1.0
94 stars 24 forks source link

binding with slf4j-api does not work #46

Closed ds21194 closed 2 years ago

ds21194 commented 2 years ago

I'm using slf4j-timbre with slf4j-api as suggested in the README.md, however when I try to build - the default implementation kicks in (NOP) and an error is thrown:

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:/Users/daniel/.m2/repository/com/fzakaria/slf4j-timbre/0.3.21/slf4j-timbre-0.3.21.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#ignoredBindings for an explanation.

several slf4j-apis' version I tried: 1.7.14, 1.7.32, 1.8.0-alpha0 - but all of them has returned the same exception.

os: mac-os with intel chip sdk: I tired with several open-sdk's: 1.8, 11, 17. The code was built using Polylith architecture .

anyone has a suggestion? Thanks for the help

ds21194 commented 2 years ago

Issue solved when I added org.slf4j/slf4j-api {:mvn/version "1.7.32"} to deps.edn under the project I was trying to build, and not only to deps.edn under the component using it. 💯