Ring middlewares for interacting with SLF4J's Mapped Diagnostic Context.
Ring middlewares for interacting with SLF4J's Mapped Diagnostic Context.
(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.
(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.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |