> You still need to load the properties and tell the logger to use them. > Assuming it is using log4j, something like the following should do > that (completely untested though): > > ... > (:require [clojure.java.io :as io]) > ... > (with-open [s (io/input-stream (io/resource "logging.properties"))] > (org.apache.log4j.PropertyConfigurator/configure > (doto (java.util.Properties.) > (.load s))))
I should have noted: Unless the library you're using is already checking for and loading a resource called "logging.properties", in which case it should work just by dropping in the properties file in the resources directory. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en