This method that makes a simple call to the log4j library throws an exception even though the message it written to the file. Not sure if there has something to do with static methods again.
user>( defn logtrace[message]( (let [logger (org.apache.log4j.LogManager/getLogger "Stream")]( .log logger org.apache.log4j.Level/FATAL message ) ))) user>(logtrace name ) Backtrace: 0: user$logtrace.invoke(NO_SOURCE_FILE:1) 1: user$eval2626.invoke(NO_SOURCE_FILE:1) 2: clojure.lang.Compiler.eval(Compiler.java:5424) 3: clojure.lang.Compiler.eval(Compiler.java:5391) 4: clojure.core$eval.invoke(core.clj:2382) I have been able to log successfully from within .clj files as well as using the REPL but there is an exception always. -- 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