Boost logo

Boost :

Subject: Re: [boost] [log] Comments
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2010-03-15 15:57:23


On 03/15/2010 10:50 PM, Steven Watanabe wrote:
>
> I guess that what I'd like is a way to specify arbitrary attributes when
> logging, so BOOST_LOG_XXX would be defined like
>
> #define BOOST_LOG_XXX(lg, component, severity) BOOST_LOG_WITH_ATTRS(lg,
> ("Severity", severity)("Channel", component))

That should be quite possible, if there was some way to select the
attributes from the rest of the named parameters for the logger.
Although that would mean the attributes are added/removed from the
logger at each record.


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