Boost logo

Boost :

Subject: Re: [boost] [log] Comments
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2010-03-15 16:36:00


Andrey Semashev wrote:
> 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.

You might be able to create special keywords that
are associated with attribute names.

In Christ,
Steven Watanabe

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