Clojure-Contrib

Invoking namespaced log macro is tedious

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None

Description

Current style is fine when using :use, but looks ugly when using :require. For example:

(ns foo.bar
    (:require (clojure.contrib [logging :as log])))
(log/log :debug "Hello World!")</code></pre>

Adding convenience macros for the 6 logging levels would mean invoking:
<pre><code>(log/debug "Hello World!")

Which looks much nicer.

Activity

Hide
Assembla Importer added a comment -

ataggart said: [file:dBZ8R2Gmmr3QoLeJe5aVNr]: Implementation patch

Show
Assembla Importer added a comment - ataggart said: [file:dBZ8R2Gmmr3QoLeJe5aVNr]: Implementation patch
Hide
Assembla Importer added a comment -

tomfaulhaber said: Fixed in commit 6c95fe9

Show
Assembla Importer added a comment - tomfaulhaber said: Fixed in commit 6c95fe9

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: