Add timbre/merge-config!
This commit is contained in:
parent
d25dd17510
commit
9c338c9b7f
2 changed files with 4 additions and 0 deletions
|
|
@ -6,6 +6,7 @@ For a list of breaking changes, check [here](#breaking-changes).
|
|||
|
||||
- Upgrade `clj-yaml` to 0.7.107 which adds two new vars: `generate-stream`, `parse-stream`
|
||||
- Upgrade several other deps
|
||||
- Add `timbre/merge-config!`
|
||||
|
||||
## 0.5.0
|
||||
|
||||
|
|
|
|||
|
|
@ -104,6 +104,8 @@
|
|||
|
||||
(defn set-level! [level] (swap-config! (fn [m] (assoc m :min-level level))))
|
||||
|
||||
(defn merge-config! [m] (swap-config! (fn [old] (enc/nested-merge old m))))
|
||||
|
||||
(def timbre-namespace
|
||||
(assoc (make-ns 'taoensso.timbre tns ['trace 'tracef 'debug 'debugf
|
||||
'info 'infof 'warn 'warnf
|
||||
|
|
@ -113,6 +115,7 @@
|
|||
'log! (sci/copy-var log! tns)
|
||||
'*config* config
|
||||
'swap-config! (sci/copy-var swap-config! tns)
|
||||
'merge-config! (sci/copy-var merge-config! tns)
|
||||
'set-level! (sci/copy-var set-level! tns)
|
||||
'println-appender (sci/copy-var println-appender tns)))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue