duct

kwrooijen 2019-12-25T09:49:22.044100Z

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

erwinrooijakkers 2019-12-25T11:28:50.044900Z

Thursday next week ๐Ÿ™‚

kwrooijen 2019-12-25T11:29:04.045100Z

Oh, thursday then!

kelveden 2019-12-25T13:40:56.045500Z

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

erwinrooijakkers 2020-01-02T10:50:50.060700Z

Thanks!

kwrooijen 2019-12-25T13:46:23.046200Z

Interesting, thanks for the info