Boost logo

Boost :

From: Jesse Jones (jesjones_at_[hidden])
Date: 2001-11-26 15:39:16

At 12:17 PM +0100 11/26/01, Roland Weiss wrote:
>For every application I create one instance of the logging template and
>provide constants to access different categories and thresholds, so
>producing a logging message looks like this:
> g_log(lc_debug, lt_medium)
> << "Value node has "
> << dom::count_children_of_type(element, DOM_Node::ELEMENT_NODE)
> << " children of type ELEMENT_NODE.\n";

The problem with this is that people can't compile out *all* the log
code without littering their code with #if LOGGING or something.
Something like this might work though:

g_log(lc_debug, lt_medium, "count = " << count);

   -- Jesse

Boost list run by bdawes at, gregod at, cpdaniel at, john at