diff --git a/src/xiana/logging.clj b/src/xiana/logging.clj new file mode 100644 index 00000000..ae657c83 --- /dev/null +++ b/src/xiana/logging.clj @@ -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)