Hi, On Tue, Nov 24, 2009 at 10:39 PM, Peter Wolf <opus...@gmail.com> wrote:
> Here is a N00B question, but I can not find the answer by Googling, or > reading Stuart's book. So, I assume that others will want to find this > FAQ in the future. > > I am calling legacy code, and I need to set the level on the Java Logger. > > In Java it would look like this > > import java.util.logging.Logger > import java.util.logging.Level > > Logger.getLogger("").setLevel(Level.WARNING) > > What is the Clojure equivalent? In particular, what is the equivalent > of Level.WARNING? > (.setLevel (Logger/getLogger "") Level/WARNING) or (-> (Logger/getLogger "") (.setLevel Level/WARNING)) see http://clojure.org/java_interop#toc5 Christophe -- Professional: http://cgrand.net/ (fr) On Clojure: http://clj-me.cgrand.net/ (en) -- 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