[doc] [#13] Add warning about SLF4J API v1 to wiki

This commit is contained in:
Peter Taoussanis 2024-07-10 13:44:15 +02:00
parent 5ef84a5e41
commit 19a9744c3f

View file

@ -45,10 +45,12 @@ Verify successful intake with [`check-intakes`](https://cljdoc.org/d/com.taoenss
To do this, ensure that you have the following dependencies: To do this, ensure that you have the following dependencies:
```clojure ```clojure
[org.slf4j/slf4j-api "x.y.z"] ; >= 2.0.0 [org.slf4j/slf4j-api "x.y.z"] ; >= 2.0.0 only!
[com.taoensso/slf4j-telemere "x.y.z"] [com.taoensso/slf4j-telemere "x.y.z"]
``` ```
> Telemere needs SLF4J API **version 2 or newer**. If you're seeing `Failed to load class "org.slf4j.impl.StaticLoggerBinder"` it could be that your project is importing the older v1 API, check with `lein deps :tree` or equivalent.
When `com.taoensso/slf4j-telemere` is on your classpath AND no other SLF4J backends are, SLF4J will direct all its logging calls to Telemere. When `com.taoensso/slf4j-telemere` is on your classpath AND no other SLF4J backends are, SLF4J will direct all its logging calls to Telemere.
Verify successful intake with [`check-intakes`](https://cljdoc.org/d/com.taoensso/telemere/CURRENT/api/taoensso.telemere#check-intakes): Verify successful intake with [`check-intakes`](https://cljdoc.org/d/com.taoensso/telemere/CURRENT/api/taoensso.telemere#check-intakes):