Add get-loggers function to get existing re-frame loggers
This commit is contained in:
parent
e3c4da6249
commit
fad4e7315b
|
@ -4,6 +4,7 @@
|
|||
|
||||
- [#200](https://github.com/Day8/re-frame/pull/200) Remove trailing spaces from console logging
|
||||
- [#248](https://github.com/Day8/re-frame/pull/200) Provide after interceptor with `db` coeffect, if no `db` effect was produced.
|
||||
- Add re-frame.loggers/get-loggers function to well, you know.
|
||||
|
||||
## 0.8.0 (2016.08.19)
|
||||
|
||||
|
|
|
@ -44,3 +44,8 @@
|
|||
[new-loggers]
|
||||
(assert (empty? (difference (set (keys new-loggers)) (-> @loggers keys set))) "Unknown keys in new-loggers")
|
||||
(swap! loggers merge new-loggers))
|
||||
|
||||
(defn get-loggers
|
||||
"Get the current logging functions used by re-frame."
|
||||
[]
|
||||
@loggers)
|
||||
|
|
Loading…
Reference in New Issue