(wrap-logger-atom-deref handler log-key)Middleware to deref the logger before request is handed off to routes.
Middleware to deref the logger before request is handed off to routes.
(wrap-logging-atom-ctx handler log-key ctx-fn)Update logger with more context from the request, where 'ctx-keys' are keys in the request, whose values should be included in the logger.
Update logger with more context from the request, where 'ctx-keys' are keys in the request, whose values should be included in the logger.
(wrap-request-logger-atom handler
log-key
&
[{:keys [ctx-fn req-keys init]
:or {ctx-fn (constantly nil)}}])Wrap logger context atom for requests when context need to be kept between middlewares, use wrap-logger-atom-deref to deref the atom
Wrap logger context atom for requests when context need to be kept between middlewares, use wrap-logger-atom-deref to deref the atom
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 |