Boost logo

Boost :

Subject: Re: [boost] [log] review part 2
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2010-03-24 10:57:12


AMDG

Vladimir Prus wrote:
> On Tuesday 16 March 2010 18:07:55 Andrey Semashev wrote:
>
>> On 03/16/2010 01:46 AM, Steven Watanabe wrote:
>>
>>>>>>> BOOST_LOG_ATTRIBUTE(logging::trivial::severity_level, severity);
>>>>>>> BOOST_LOG_ATTRIBUTE(unsigned int, line_id);
>>>>>>>
>>>>>> I thought if that. It was not done for two reasons:
>>>>>>
>>>>>> 1. The macro would have to have a formatter in its arguments. Given
>>>>>> that the attribute definition should be exposed rather widely, this
>>>>>> additional dependency would be unwelcome.
>>>>>>
>>> Why is it necessary to pass a formatter to the macro?
>>>
>> In order to support your syntax:
>>
>> fmt::stream
>> << fmt::line_id()
>> << ": <" << fmt::severity()
>> << "> " << fmt::message()
>>
>
> Steven, Andrey,
>
> did you arrive to any decision on the point above?
>

I think this discussion was continued in another thread,
where it also came up.

In Christ,
Steven Watanabe


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