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:

This entry was posted in Programming and tagged , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *