ring-logger-timbre

taoensso/timbre implementation for ring-logger


License
EPL-1.0

Documentation

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.