Marco Baringer mb@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)))
?