From 3739369c64f24d028f70ba6171ae557a1780e6ab Mon Sep 17 00:00:00 2001 From: Mike Thompson Date: Tue, 19 Jul 2016 14:33:52 +1000 Subject: [PATCH] Better comment --- src/re_frame/core.cljs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/re_frame/core.cljs b/src/re_frame/core.cljs index 56a51c9..751b876 100644 --- a/src/re_frame/core.cljs +++ b/src/re_frame/core.cljs @@ -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)