Youโre welcome, see you on monday ๐
Thursday next week ๐
Oh, thursday then!
I wanted something similar too (using tools.logging->slf4j->logback in my case). As you've probably ascertained, the duct default logger (`:duct/logger`) uses timbre. So you need to rewire :duct/logger
to use something else - which means implementing the duct.logger/Logger
protocol: https://github.com/duct-framework/logger/blob/master/src/duct/logger.clj#L4
E.g.:
(ns duct.logger.tools-logging
(:require [clojure.tools.logging :as log]
[duct.logger]
[integrant.core :as ig]))
(defrecord ClojureLogger []
duct.logger/Logger
...)
(defmethod ig/init-key :duct.logger/tools-logging [_ _]
(->ClojureLogger))
And then you need a line in your duct_hierarchy.edn: :duct.logger/tools-logging [:duct/logger]
Now if you add :duct.logger/tools-logging {}
to your app's duct config file it should all wire up to use Clojure's tools.logging (which you can then wire up to logback using slf4j).Thanks!
Interesting, thanks for the info