mirror of
https://github.com/status-im/re-frame.git
synced 2025-02-23 15:28:09 +00:00
Better comment
This commit is contained in:
parent
3311d02c22
commit
3739369c64
@ -71,6 +71,12 @@
|
||||
;; (defn my-fn [& args] (post-it-somewhere (apply str args)))
|
||||
;; (re-frame.core/set-loggers! {:warn my-fn :log my-fn}) ;; I should override the rest of them too.
|
||||
(def set-loggers! loggers/set-loggers!)
|
||||
|
||||
;; If you are writing an extension to re-frame, like perhaps
|
||||
;; an effeects handler, you may want to use re-frame logging.
|
||||
;;
|
||||
;; usage: (console :error "this is bad: " a-variable " and " anotherv)
|
||||
;; (console :warn "possible breach of containment wall at: " dt)
|
||||
(def console loggers/console)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user