Liking cljdoc? Tell your friends :D

mokujin.log


current-contextclj

(current-context)

Returns the current context map, useful if you want to pass it to another process to continue logging with the same context. Note that due to how MDC works, this will only return the context map for the current thread and map keys will be strings, not keywords.

Returns the current context map, useful if you want to pass it to another process to continue logging with the same context.
Note that due to how MDC works, this will only return the context map for
the current thread and map keys will be strings, not keywords.
raw docstring

debugcljmacro

(debug msg)
(debug msg context)

Similar to clojure.tools.logging/debug. but with optional MDC context arg.

Similar to clojure.tools.logging/debug. but with optional MDC context arg.
raw docstring

debugfcljmacro

(debugf msg & args)

Same as clojure.tools.logging/debugf.

Same as clojure.tools.logging/debugf.
raw docstring

errorcljmacro

(error msg)
(error msg ctx)
(error exc msg)
(error exc msg ctx)

Log an error message, with optional exception and/or context map. [msg] [msg ctx] [exc msg] [exc msg ctx] 2-arity calls are resolved at compile time when the message is a string literal or the context is a map literal, otherwise the first argument is checked for being a Throwable at runtime.

Log an error message, with optional exception and/or context map.
[msg]
[msg ctx]
[exc msg]
[exc msg ctx]
2-arity calls are resolved at compile time when the message is a string literal
or the context is a map literal, otherwise the first argument is checked for being a Throwable at runtime.
raw docstring

errorfcljmacro

(errorf msg & args)

Same as clojure.tools.logging/errorf.

Same as clojure.tools.logging/errorf.
raw docstring

infocljmacro

(info msg)
(info msg context)

Similar to clojure.tools.logging/info. but with optional MDC context arg.

Similar to clojure.tools.logging/info. but with optional MDC context arg.
raw docstring

infofcljmacro

(infof msg & args)

Same as clojure.tools.logging/infof.

Same as clojure.tools.logging/infof.
raw docstring

logcljmacro

(log level msg)
(log level msg context?)

Log wrapper which is helpful if you need to programatically control the log level

Log wrapper which is helpful if you need to programatically control the log level
raw docstring

logfcljmacro

(logf level msg & args)

Log wrapper which is helpful if you need to programatically control the log level.

Log wrapper which is helpful if you need to programatically control the log level.
raw docstring

mdc-putclj

(mdc-put ctx)

Take a context map and put it into the MDC. Keys and values will be stringified.

Take a context map and put it into the MDC. Keys and values will be stringified.
raw docstring

tracecljmacro

(trace msg)
(trace msg context)

Similar to clojure.tools.logging/trace. but with optional MDC context arg.

Similar to clojure.tools.logging/trace. but with optional MDC context arg.
raw docstring

tracefcljmacro

(tracef msg & args)

Same as clojure.tools.logging/tracef.

Same as clojure.tools.logging/tracef.
raw docstring

warncljmacro

(warn msg)
(warn msg context)

Similar to clojure.tools.logging/warn. but with optional MDC context arg.

Similar to clojure.tools.logging/warn. but with optional MDC context arg.
raw docstring

warnfcljmacro

(warnf msg & args)

Same as clojure.tools.logging/warnf.

Same as clojure.tools.logging/warnf.
raw docstring

with-contextcljmacro

(with-context ctx & body)

Set context map for the form. Ideally, the context map should use unqualified keywords or strings for keys. Values will be stringified.

Set  context map for the form. Ideally, the context map should use unqualified keywords or strings for keys.
Values will be stringified.
raw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close