https://github.com/ninjakoala/monotony
Clojure library to redirect timbre logging to tools.logging
https://github.com/ninjakoala/monotony
clojure logging timbre
Last synced: 2 months ago
JSON representation
Clojure library to redirect timbre logging to tools.logging
- Host: GitHub
- URL: https://github.com/ninjakoala/monotony
- Owner: ninjakoala
- License: epl-1.0
- Created: 2014-04-24T07:40:56.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2019-07-09T11:05:55.000Z (almost 6 years ago)
- Last Synced: 2025-01-08T05:17:06.011Z (4 months ago)
- Topics: clojure, logging, timbre
- Language: Clojure
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://clojars.org/com.ninjakoala/monotony) [](https://travis-ci.org/ninjakoala/monotony)
```clojure
(ns yourapp
(:require [ninjakoala.monotony :refer [redirect-logging!]]))(redirect-logging!)
```This will go ahead and replace all timbre appenders with a single appender which uses `clojure.tools.logging/log` instead.
# monotony
Redirects [timbre](https://github.com/ptaoussanis/timbre) logging into [tools.logging](https://github.com/clojure/tools.logging).
## Justification
It's definitely not that I don't like timbre. I think it's a great idea and am looking forward to using it properly in the future. However, at `$DAYJOB` we already have well-established custom [Logback](http://logback.qos.ch/) appenders and have finally got all our existing libraries to redirect their logging to [SLF4J](http://www.slf4j.org/). I don't have time at the moment and I love [carmine](https://github.com/ptaoussanis/carmine) too much to have its logging go somewhere else.
## License
Copyright © 2014 Neil Prosser
Distributed under the Eclipse Public License either version 1.0 or (at
your option) any later version.