On Wed, Feb 8, 2012 at 3:15 PM, Tassilo Horn <tass...@member.fsf.org> wrote: > Mark Rathwell <mark.rathw...@gmail.com> writes: > >> It's logging, and assuming the logging implementation it is using >> log4j, > > Why do you know that from the information given? > > Just in case the java lib in fact uses System.out/err directly, one can > redirect standard out and error to something else. > > (with-open [w (clojure.java.io/writer "/dev/null")] > (binding [*out* w, *err* w] > (.noisyJavaCall1 1 2 3) > (.noisyJavaCall2 3 2 1))) > > Of course, /dev/null is somewhat platform specific.
Will that work? I was under the impession that binding *out* and *err* had no effect on System/out or System/err. The OP may wish to use System/setOut and/or System/setErr instead of binding. -- 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