Access logger based on extended NCSA Common Logging.
Access logger based on extended NCSA Common Logging.
(-make-message start-time-nanos request response auth-principal-fn)
Only public for testing, not intended for direct use.
Only public for testing, not intended for direct use.
(access-logger handler
&
[{:keys [auth-principal-fn]
:or {auth-principal-fn (constantly nil)}}])
Ring middleware that produces access logs line on the standard Clojure logger.
Accepts the following options:
:auth-principal-fn - a function that takes a Ring request and response and returns the authenticated principal for the request or nil if none. The authenticated principal will be automatically cast to string before logging by the str function. Note that the response can be nil in case an exception was thrown by the handler.
Ring middleware that produces access logs line on the standard Clojure logger. Accepts the following options: :auth-principal-fn - a function that takes a Ring request and response and returns the authenticated principal for the request or nil if none. The authenticated principal will be automatically cast to string before logging by the str function. Note that the response can be nil in case an exception was thrown by the handler.
(log-access start-time-nanos request response auth-principal-fn)
Ouputs an access log line. Typically not used directly but via the access-logger middleware.
Ouputs an access log line. Typically not used directly but via the access-logger middleware.
The MessageFormat used for formatting access log lines.
The MessageFormat used for formatting access log lines.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close