Open benjiqq opened 6 years ago
kabel uses https://github.com/ptaoussanis/timbre
you can try: timbre/set-level!
looks like needs some extra code if one wants to filter, the following works for now https://github.com/ptaoussanis/timbre/issues/138
(timbre/merge-config!
{:appenders
{:println
{:fn (let [logger-factory (clojure.tools.logging.impl/find-factory)
logger (clojure.tools.logging.impl/get-logger logger-factory *ns*)]
(fn [data]
;do nothing (clojure.tools.logging/log* logger (:level data) (:?err data) (force (:output_ data)))
)
)}}})
how to set logging in the ping-pong example - it is info by default?