amperity / dialog

Simple just-enough logging library for Clojure
MIT License
39 stars 2 forks source link

Document how to send timbre logging to slf4j / dialog #35

Open ieugen opened 1 year ago

ieugen commented 1 year ago

I've asked this on clojurians slack, on #timbre just now.

We have an issue that I believe is caused by some libraries logging with timbre (not confirmed yet).

In our app if we load dialog ns first, logging works fine. If we load another ns that uses tools-logging (which should work over slf4j / dialog) then logging from that ns does not appear.

Just started investigating this.

https://clojurians.slack.com/archives/C1J6MQC2H/p1686296806175059

ieugen commented 1 year ago

So it seems our issue is not related to timbre.

We use the [clojure.tools.logging] API .

Adding a require to this [clojure.tools.logging] in the file solves our issue. Just requiring dialog.logger does not properly initialize the logging infrastructure.