Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nberger/ring-logger-timbre
Log ring requests & responses using ring-logger and timbre!
https://github.com/nberger/ring-logger-timbre
Last synced: 3 months ago
JSON representation
Log ring requests & responses using ring-logger and timbre!
- Host: GitHub
- URL: https://github.com/nberger/ring-logger-timbre
- Owner: nberger
- License: epl-1.0
- Created: 2015-09-01T00:39:17.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-10-08T15:14:26.000Z (about 7 years ago)
- Last Synced: 2024-09-14T10:02:39.539Z (4 months ago)
- Language: Clojure
- Homepage:
- Size: 22.5 KB
- Stars: 24
- Watchers: 3
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ring-logger-timbre [![Circle CI](https://circleci.com/gh/nberger/ring-logger-timbre.svg?style=svg)](https://circleci.com/gh/nberger/ring-logger-timbre)
[Timbre](https://github.com/ptaoussanis/timbre) implementation for [ring-logger](https://github.com/nberger/ring-logger)
[![Clojars Project](http://clojars.org/ring-logger-timbre/latest-version.svg)](http://clojars.org/ring-logger-timbre)
## Usage
In your `project.clj`, add the following dependencies:
```clojure
[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:```clojure
(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.