Liking cljdoc? Tell your friends :D

timbre.core

Simple, flexible, all-Clojure logging. No XML!

Simple, flexible, all-Clojure logging. No XML!
raw docstring

compare-levelsclj

source

configclj

This map atom controls everything about the way Timbre operates. In particular note the flexibility to add arbitrary appenders.

An appender is a map with keys: :doc, :min-level, :enabled?, :async?, :max-message-per-msecs, :fn?

An appender's fn takes a single map argument with keys: :ap-config, :level, :error?, :instant, :timestamp, :ns, :message, :more

See source code for examples.

This map atom controls everything about the way Timbre operates. In
particular note the flexibility to add arbitrary appenders.

An appender is a map with keys:
  :doc, :min-level, :enabled?, :async?, :max-message-per-msecs, :fn?

An appender's fn takes a single map argument with keys:
  :ap-config, :level, :error?, :instant, :timestamp, :ns, :message, :more

See source code for examples.
sourceraw docstring

debugcljmacro

(debug message & more)
(debug throwable message & more)

Log given arguments at Debug level.

Log given arguments at Debug level.
sourceraw docstring

errorcljmacro

(error message & more)
(error throwable message & more)

Log given arguments at Error level.

Log given arguments at Error level.
sourceraw docstring

fatalcljmacro

(fatal message & more)
(fatal throwable message & more)

Log given arguments at Fatal level.

Log given arguments at Fatal level.
sourceraw docstring

infocljmacro

(info message & more)
(info throwable message & more)

Log given arguments at Info level.

Log given arguments at Info level.
sourceraw docstring

juxt-cacheclj

Per-level, combined relevant appender-fns: {:level (juxt wrapped-appender-fn wrapped-appender-fn ...) or nil ...}

Per-level, combined relevant appender-fns:
{:level (juxt wrapped-appender-fn wrapped-appender-fn ...) or nil
  ...}
sourceraw docstring

logcljmacro

(log message & more)
(log throwable message & more)

Dispatches given arguments to relevant appender-fns iff logging level is sufficient.

Dispatches given arguments to relevant appender-fns iff logging level is
sufficient.
sourceraw docstring

prefixed-messageclj

(prefixed-message {:keys [level timestamp ns message]})

timestamp LEVEL [ns] - message

timestamp LEVEL [ns] - message
sourceraw docstring

set-config!clj

(set-config! [k & ks] val)
source

set-level!clj

(set-level! level)
source

spycljmacro

(spy expr)
(spy level expr)

Evaluates expression and logs its form and result. Returns the result. Defaults to :debug logging level.

Evaluates expression and logs its form and result. Returns the result.
Defaults to :debug logging level.
sourceraw docstring

str-printlnclj

(str-println & xs)

Like 'println' but prints all objects to output stream as a single atomic string. This is faster and avoids interleaving race conditions.

Like 'println' but prints all objects to output stream as a single
atomic string. This is faster and avoids interleaving race conditions.
sourceraw docstring

sufficient-level?clj

(sufficient-level? level)
source

tracecljmacro

(trace message & more)
(trace throwable message & more)

Log given arguments at Trace level.

Log given arguments at Trace level.
sourceraw docstring

warncljmacro

(warn message & more)
(warn throwable message & more)

Log given arguments at Warn level.

Log given arguments at Warn level.
sourceraw docstring

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

× close