Note that ns filters work for SLF4J logger names too

This commit is contained in:
lvh 2024-12-31 08:53:52 -06:00 committed by GitHub
parent 0e642ba21f
commit 0b316a43a4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -102,9 +102,12 @@ It enables you to write code that is **information-verbose by default**.
(t/set-min-level! :warn) ; For all signals
(t/set-min-level! :log :debug) ; For `log!` signals only
;; Set namespace and id filters
(t/set-ns-filter! {:disallow "taoensso.*" :allow "taoensso.sente.*"})
;; Set id and namespace filters
(t/set-id-filter! {:allow #{::my-particular-id "my-app/*"}})
(t/set-ns-filter! {:disallow "taoensso.*" :allow "taoensso.sente.*"})
;; SLF4j (and by extension JUL) events will have a ":ns" set to the logger
;; name so ns filtering works for loggers too:
(t/set-ns-filter! {:disallow "com.noisy.java.package.*"})
;; Set minimum level for `event!` signals for particular ns pattern
(t/set-min-level! :event "taoensso.sente.*" :warn)