
28 Jan
2005
28 Jan
'05
9:40 p.m.
You may want to make your logging levels a policy which defaults to an enumeration of your currently listed logging levels. This way, if someone has a need for a logger with other levels of output they can just specify a different enumeration for the policy. Instead of having separate logging functions (log, warn, info) you could have one which accepts a value of the enumeration's type as the first param. The logging level could be a member of this enumeration as well, so a simple less-than comparison could determine whether or not to output the message. -Jason