Skip to content

Commit

Permalink
Set timbre log level in config (#284)
Browse files Browse the repository at this point in the history
* Change log level in configuration

Co-authored-by: Iain Wood <iain.wood@flexiana.com>

* Fix cljstyle and clj-kondo

Co-authored-by: Iain Wood <iain.wood@flexiana.com>

---------

Co-authored-by: Iain Wood <iain.wood@flexiana.com>
  • Loading branch information
gmsvalente and Iain Wood authored Feb 28, 2024
1 parent 1f14dc6 commit fb15e7d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/xiana/logging.clj
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
(ns xiana.logging
(:require
[taoensso.timbre :as log]
[xiana.config :as config]))

(defn set-level
[cfg]
(when-let [level (-> (config/config) :logging/timbre-config :min-level)]
(log/set-min-level! level))
cfg)

0 comments on commit fb15e7d

Please sign in to comment.