Liking cljdoc? Tell your friends :D

unilog.context

Provide a way to interact with Mapped Diagnostic Context

Provide a way to interact with Mapped Diagnostic Context
raw docstring

mdc-fncljmacro

(mdc-fn & fntail)

Returns a function defined by the given fntail, which will install the same MDC context map in effect as in the thread at the time mdc-fn was called. This may be used to define a helper function which runs on a different thread, but needs to preserve the MDC context.

Returns a function defined by the given fntail, which will install the
same MDC context map in effect as in the thread at the time mdc-fn was called.
This may be used to define a helper function which runs on a different
thread, but needs to preserve the MDC context.
sourceraw docstring

mdc-fn*clj

(mdc-fn* f)

Returns a function, which will install the same MDC context map in effect as in the thread at the time mdc-fn* was called and then call f with any given arguments. This may be used to define a helper function which runs on a different thread, but needs to preserve the MDC context.

Returns a function, which will install the same MDC context map in effect as in
the thread at the time mdc-fn* was called and then call f with any given
arguments. This may be used to define a helper function which runs on a
different thread, but needs to preserve the MDC context.
sourceraw docstring

pull-contextclj

(pull-context k)

Remove a key to the current Mapped Diagnostic Context

Remove a key to the current Mapped Diagnostic Context
sourceraw docstring

push-contextclj

(push-context k v)

Add a key to the current Mapped Diagnostic Context

Add a key to the current Mapped Diagnostic Context
sourceraw docstring

set-contextclj

(set-context ctx)

Sets the current Mapped Diagnostic Context

Sets the current Mapped Diagnostic Context
sourceraw docstring

with-contextcljmacro

(with-context ctx & body)

Execute body with the Mapped Diagnostic Context updated from keys found in the ctx map.

Execute body with the Mapped Diagnostic Context updated from
keys found in the ctx map.
sourceraw docstring

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

× close