Improve comments around logging
This commit is contained in:
parent
c07730d794
commit
be8f5b1cc5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue