Fork me on GitHub
#duct
<
2019-12-25
>
kwrooijen09:12:22

Youโ€™re welcome, see you on monday ๐Ÿ‘‹

erwinrooijakkers11:12:50

Thursday next week ๐Ÿ™‚

kwrooijen11:12:04

Oh, thursday then!

kelveden13:12:56

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).

kwrooijen13:12:23

Interesting, thanks for the info