(set-log-level-handler request)
Ring handler which allows setting the log level at runtime. to the given 'level' parameter.
Should be attached to a POST request and called with a level parameter, e.g.
POST /api/loglevel?level=[new-log-level]
Assumes that the request :params is a map with either string or keyword keys.
Ring handler which allows setting the log level at runtime. to the given 'level' parameter. Should be attached to a POST request and called with a level parameter, e.g. POST /api/loglevel?level=[new-log-level] Assumes that the request :params is a map with either string or keyword keys.
(wrap-logging handler)
(wrap-logging handler {:keys [level] :or {level :info} :as _options})
Ring middleware which logs the result of every request.
Ring middleware which logs the result of every request.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close