diff --git a/src/re_frame/core.cljs b/src/re_frame/core.cljs index b111f4e..726c135 100644 --- a/src/re_frame/core.cljs +++ b/src/re_frame/core.cljs @@ -3,6 +3,7 @@ [re-frame.handlers :as handlers] [re-frame.subs :as subs] [re-frame.router :as router] + [re-frame.utils :as utils] [re-frame.middleware :as middleware])) @@ -34,13 +35,13 @@ ;; -- Logging ----- -;; re-frame uses a few utility logging functions: warn, log, error, group and groupEnd -;; By default they use the js/console implementations -;; But you can override: +;; re-frame uses the logging functions: warn, log, error, group and groupEnd +;; By default, these functions map directly to the js/console implementations +;; But you can override with your own (set or subset): ;; (set-loggers! {:warn my-warn :log my-looger ...}) -;; The functions you supply will be given a string. (def set-loggers! utils/set-loggers!) + ;; -- Convenience API ------- ;; Almost 100% of handlers will be pure, so make it easy to