Example of integrating logback into the clojure.tools.logging library.
Switch branches/tags
Nothing to show
Clone or download
Latest commit 4bec296 Feb 21, 2014
Failed to load latest commit information.
src Add with-logging-context macro for MDC and log/spy Feb 21, 2014
.gitignore initial draft Sep 14, 2012
README.md file appender example added Sep 14, 2012
project.clj Update dependencies. Feb 21, 2014



Example of how to integrate logback [http://logback.qos.ch] into clojure.tools.logging [https://github.com/clojure/tools.logging]. Also uses a log ns to delegate calls via macros so you can switch in timbre, etc.

Logback is powerful and configurable, and integrates well with a lot of existing Java frameworks, so it makes the ideal logging library for Clojure.

Important parts are in project.clj, src/logback.xml, and log.clj. Project.clj needs to include the right dependencies. Logback.xml must be on your classpath, which means src/ or resources/ with lein.


Test with 'lein run'


Copyright © 2012 Vaughn Dickson

Distributed under the Eclipse Public License, the same as Clojure.