Liking cljdoc? Tell your friends :D

taoensso.timbre.appenders.core

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.
raw docstring

console-?appendercljs

DEPRECATED

DEPRECATED
raw docstring

console-appendercljs

(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
raw docstring

println-appenderclj/s≠

clj
(println-appender & [{:keys [stream] :or {stream :auto}}])
cljs
(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>}.
raw docstring

spit-appenderclj

(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.
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close