Timbre implementation for ring-logger
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})
Pull requests, issues and any feedback are all welcome!
Copyright © 2017 Nicolás Berger
Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.