Core Timbre appenders without any special dependency requirements. These can be aliased into the main Timbre ns for convenience.
Core Timbre appenders without any special dependency requirements. These can be aliased into the main Timbre ns for convenience.
(console-appender & [opts])
Returns a simple js/console appender for ClojureScript.
Use ^:meta {:raw-console? true} as first argument to logging call if you want args sent to console in a raw format enabling console-based pretty-printing of JS objects, etc. E.g.:
(info my-js-obj) ; Send string to console (info ^:meta {:raw-console? true} my-js-obj) ; Send raw args to console
For accurate line numbers in Chrome, add these Blackbox[1] patterns:
/taoensso/timbre/appenders/core\.js$
/taoensso/timbre\.js$
/cljs/core\.js$
[1] Ref. https://goo.gl/ZejSvR
Returns a simple js/console appender for ClojureScript. Use ^:meta {:raw-console? true} as first argument to logging call if you want args sent to console in a raw format enabling console-based pretty-printing of JS objects, etc. E.g.: (info my-js-obj) ; Send string to console (info ^:meta {:raw-console? true} my-js-obj) ; Send raw args to console For accurate line numbers in Chrome, add these Blackbox[1] patterns: `/taoensso/timbre/appenders/core\.js$` `/taoensso/timbre\.js$` `/cljs/core\.js$` [1] Ref. https://goo.gl/ZejSvR
(println-appender & [{:keys [stream] :or {stream :auto}}])
(println-appender & [_opts])
Returns a simple println
appender for Clojure/Script.
Use with ClojureScript requires that cljs.core/*print-fn*
be set.
:stream (clj only) - e/o #{:auto :out :err :std-err :std-out <io-stream>}.
Returns a simple `println` appender for Clojure/Script. Use with ClojureScript requires that `cljs.core/*print-fn*` be set. :stream (clj only) - e/o #{:auto :*out* :*err* :std-err :std-out <io-stream>}.
(spit-appender &
[{:keys [fname append? locking?]
:or {fname "./timbre-spit.log" append? true locking? true}}])
Returns a simple spit
file appender for Clojure.
Returns a simple `spit` file appender for Clojure.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close