From be8f5b1cc5ea3c48ca7c1bde932188117f4d3db3 Mon Sep 17 00:00:00 2001 From: mike-thompson-day8 Date: Sat, 2 May 2015 10:46:05 +1000 Subject: [PATCH] Improve comments around logging --- src/re_frame/core.cljs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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