add extra example code to show how to enable debug logging client-side

This commit is contained in:
Gered 2016-05-07 17:10:08 -04:00
parent 72c886e772
commit 3a196a3ff2

View file

@ -55,8 +55,16 @@
(fn []
(.disconnect channel)
(events/removeAll)))
; disable logging
(doto (.. channel getChannelDebug getLogger)
(.setLevel goog.debug.Logger.Level.OFF))
; or if you would like to see a ton of browserchannel logging output, uncomment this
#_(doto (.. channel getChannelDebug getLogger)
(.setLevel goog.debug.Logger.Level.FINER)
(.addHandler #(js/console.log %)))
(doto channel
(.setHandler (handler))
(.connect "/channel/test" "/channel/bind")))