Skip to content

Instantly share code, notes, and snippets.

@bonkydog
Last active December 17, 2015 04:09
Show Gist options
  • Select an option

  • Save bonkydog/5548539 to your computer and use it in GitHub Desktop.

Select an option

Save bonkydog/5548539 to your computer and use it in GitHub Desktop.
Force clojure.tools.logging to use a specific logging package By default, clojure.tools.logging picks the logging package it prefers from whatever is available in your classpath. Found this solution at http://corfield.org/blog/post.cfm/real-world-clojure-logging Thanks, Sean!
(alter-var-root
(var clojure.tools.logging/*logger-factory*)
(constantly (clojure.tools.logging.impl/log4j-factory)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment