Closed harti2006 closed 6 years ago
Thanks for such a clear write-up!
Fixed in 0.3.11
Please note that you may still lose the context if you call clj-log/info
etc. within an STM transaction.
This is because timbre uses a thread-local binding for *context*
but clojure.tools.logging
may use agents to do the actual logging in a separate thread using send-off
.
(A pretty unlikely edge case but I'm documenting it here for posterity)
Awesome. Thank you so much for the quick fix. 0.3.11 works perfectly fine for me.
Hi,
I'm currently facing an issue with custom context, that is declared via
timbre/with-context
, not being delivered to themiddleware
andoutput-fn
, when using theclojure.tools.logging
adapter.Steps to reproduce
Project dependencies
Snippet
Output
Expected behavior
The custom application context should be supplied regardless of the log api that was used.