Skip to content

Mayvenn/ring-logging

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ring-logging

A Ring middleware for logging requests and responses

Referencing in Leiningen

Clojars

Primary Namespace

ring-logging.core

Example

(defn wrap-api [routes logger]
  (-> routes
      ring-logging/wrap-request-timing
      (ring-logging/wrap-logging logger ring-logging/simple-inbound-config)
      wrap-json-response
      (wrap-json-body {:keywords? true})
      ring-logging/wrap-trace-request
      (wrap-defaults api-defaults)))