Improve comments around logging
This commit is contained in:
parent
c07730d794
commit
be8f5b1cc5
|
@ -3,6 +3,7 @@
|
||||||
[re-frame.handlers :as handlers]
|
[re-frame.handlers :as handlers]
|
||||||
[re-frame.subs :as subs]
|
[re-frame.subs :as subs]
|
||||||
[re-frame.router :as router]
|
[re-frame.router :as router]
|
||||||
|
[re-frame.utils :as utils]
|
||||||
[re-frame.middleware :as middleware]))
|
[re-frame.middleware :as middleware]))
|
||||||
|
|
||||||
|
|
||||||
|
@ -34,13 +35,13 @@
|
||||||
|
|
||||||
|
|
||||||
;; -- Logging -----
|
;; -- Logging -----
|
||||||
;; re-frame uses a few utility logging functions: warn, log, error, group and groupEnd
|
;; re-frame uses the logging functions: warn, log, error, group and groupEnd
|
||||||
;; By default they use the js/console implementations
|
;; By default, these functions map directly to the js/console implementations
|
||||||
;; But you can override:
|
;; But you can override with your own (set or subset):
|
||||||
;; (set-loggers! {:warn my-warn :log my-looger ...})
|
;; (set-loggers! {:warn my-warn :log my-looger ...})
|
||||||
;; The functions you supply will be given a string.
|
|
||||||
(def set-loggers! utils/set-loggers!)
|
(def set-loggers! utils/set-loggers!)
|
||||||
|
|
||||||
|
|
||||||
;; -- Convenience API -------
|
;; -- Convenience API -------
|
||||||
|
|
||||||
;; Almost 100% of handlers will be pure, so make it easy to
|
;; Almost 100% of handlers will be pure, so make it easy to
|
||||||
|
|
Loading…
Reference in New Issue