[doc] [#43] Note that ns filters work for SLF4J logger names (@lvh)

This commit is contained in:
lvh 2024-12-31 08:53:52 -06:00 committed by Peter Taoussanis
parent 0e642ba21f
commit db0498b22c

View file

@ -102,9 +102,13 @@ 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 signals will have their `:ns` key set to the logger's name
;; (typically a source class)
(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)