Logging in Clojure

Warning: Clojure newbie alert.

Having some difficulty finding comprehensive examples of logging in Clojure, maybe I’m searching for the wrong things. All the clojure docs seem to be brief to say the least. What would be nice is to figure out whether I can do something like:

or even:

Will update as I figure things out.

Edit June 21, 2012: Since updating to Clojure 1.3 the clojure.tools.logging class is now available. It can be included in a leiningen project.clj file in its :dependencies section eg.:

It will need to be included in the namespace, eg.:

Then logging can be performed in-line:

Posted in Programming | Tagged , | Leave a comment

Hello world!

This is Taufiq’s blog. Not intended for anything other than my own brain dump, and as a place for keeping track of things I find useful.

Posted in Programming | Leave a comment