Add get-loggers function to get existing re-frame loggers

This commit is contained in:
Daniel Compton 2016-10-17 10:30:22 +13:00
parent e3c4da6249
commit fad4e7315b
2 changed files with 6 additions and 0 deletions

View File

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

View File

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