Provide a way to interact with Mapped Diagnostic Context
Provide a way to interact with Mapped Diagnostic Context
(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.
(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.
(pull-context k)
Remove a key to the current Mapped Diagnostic Context
Remove a key to the current Mapped Diagnostic Context
(push-context k v)
Add a key to the current Mapped Diagnostic Context
Add a key to the current Mapped Diagnostic Context
(set-context ctx)
Sets the current Mapped Diagnostic Context
Sets the current Mapped Diagnostic Context
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close