$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [boost] [log] Comments
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2010-03-15 16:36:00
AMDG
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