[log4cl-devel] logging levels

Lam lam at tuxfamily.org
Tue Mar 9 18:03:53 UTC 2004


Marco Baringer <mb at bese.it> writes:

> i was looking at the implementation of logging levels, i think it
> would be a better idea to assign each level a number this would be
> much faster than the current list based implementation, when we add or
> remove levels we can just update the numbers associated with each
> level. what do you think?

Currently levels are defined like this :

(defparameter *levels* '(:debug :info :warning :error :fatal))

would you like to create a such structure like this :

(defparameter *levels* 
              '((:debug . 1)
                (:info . 2)
                (:warning . 3) 
                (:error . 4)
                (:fatal . 5)))

?

-- 
Nicolas Lamirault





More information about the Log4cl-devel mailing list