Skip to content

nberger/ring-logger-timbre

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ring-logger-timbre Circle CI

Timbre implementation for ring-logger

Clojars Project

Usage

In your project.clj, add the following dependencies:

    [ring-logger-timbre "0.7.6"]

Add the middleware to your stack, using the timbre implementation. It's similar to using the default ring-logger, but requiring the timbre namespace:

    (ns foo
      (:require [ring.adapter.jetty :as jetty]
                [ring.logger.timbre :as logger.timbre]))

    (defn my-ring-app [request]
      {:status 200
       :headers {"Content-Type" "text/html"}
       :body "Hello world!"})

    (jetty/run-jetty (logger.timbre/wrap-with-logger my-ring-app) {:port 8080})

Contributing

Pull requests, issues and any feedback are all welcome!

License

Copyright © 2017 Nicolás Berger

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

About

Log ring requests & responses using ring-logger and timbre!

Resources

License

Stars

Watchers

Forks

Packages

No packages published