Liking cljdoc? Tell your friends :D

org.bdinetwork.ring.logging


wrap-loggingclj

(wrap-logging handler)

Ring middleware logging request/reponse.

If the response has an error status, logs as an error line. If response has an :exception key, include the exception in the log. Use wrap-server-error to convert thrown exceptions into 500 Server Error responses.

If the repsonse has a non-error status, log as an info line.

Ring middleware logging request/reponse.

If the response has an error status, logs as an error line. If
response has an `:exception` key, include the exception in the
log. Use `wrap-server-error` to convert thrown exceptions into `500
Server Error` responses.

If the repsonse has a non-error status, log as an info line.
sourceraw docstring

wrap-server-errorclj

(wrap-server-error f)

Ring middleware converting thrown exceptions into 500 Server Error responses.

Includes the thrown exception in the response as :exception.

Ring middleware converting thrown exceptions into `500 Server Error` responses.

Includes the thrown exception in the response as `:exception`.
sourceraw docstring

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

× close