(binding [*logger-factory* (log-impl/log4j-factory)]
(do-stuff-with-the-logger-factory-rebound))
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clo...@googlegroups.com
> Note that posts from new members are moderated - please be patient with your first post.
> To unsubscribe from this group, send email to
> clojure+u...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
>
(ns your.namespace
(:require [clojure.tools.logging :as log])
(:require [clojure.tools.logging.impl :as impl]))
(alter-var-root (var log/*logger-factory*) (constantly (impl/log4j-factory)))
This is what we ended with in our code to ensure log4j was selected at
startup...
Sean
I agree but when I brought the issue up, there didn't seem to be much
support for making it easier... Perhaps a ticket in JIRA might garner
some votes?
--
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/
"Perfection is the enemy of the good."
-- Gustave Flaubert, French realist novelist (1821-1880)