Liking cljdoc? Tell your friends :D

ring.middleware.mdc

Ring middlewares for interacting with SLF4J's Mapped Diagnostic Context.

Ring middlewares for interacting with SLF4J's Mapped Diagnostic Context.
raw docstring

wrap-clear-mdcclj

(wrap-clear-mdc handler)

A ring middleware that clears the MDC after the handler executes.

Note that this relies on thread-local bindings, so you cannot use async handlers if you use this middleware.

A ring middleware that clears the MDC after the handler executes.

Note that this relies on thread-local bindings, so you cannot use async
handlers if you use this middleware.
sourceraw docstring

wrap-mdcclj

(wrap-mdc handler f)

A ring middleware that applies the k/v pairs from (f request) to the MDC and clears the keys from the MDC after the handler executes.

Only the keys defined in (f request) are cleared; other keys are left intact.

Note that this relies on thread-local bindings, so you cannot use async handlers if you use this middleware.

A ring middleware that applies the k/v pairs from `(f request)` to the MDC
and clears the keys from the MDC after the handler executes.

Only the keys defined in `(f request)` are cleared; other keys are left
intact.

Note that this relies on thread-local bindings, so you cannot use async
handlers if you use this middleware.
sourceraw docstring

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

× close