Liking cljdoc? Tell your friends :D

com.unbounce.treajure.ring.access-log

Access logger based on extended NCSA Common Logging.

Access logger based on extended NCSA Common Logging.
raw docstring

-make-messageclj

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

access-loggerclj

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

log-accessclj

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

log-formatclj

The MessageFormat used for formatting access log lines.

The MessageFormat used for formatting access log lines.
sourceraw docstring

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

× close