Boost logo

Boost :

From: Jason Hise (chaos_at_[hidden])
Date: 2005-01-28 16:40:17


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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk