Liking cljdoc? Tell your friends :D

drawknife.middleware


wrap-logger-atom-derefclj

(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.
sourceraw docstring

wrap-logging-atom-ctxclj

(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.
sourceraw docstring

wrap-request-logger-atomclj

(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
sourceraw docstring

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

× close