Boost logo

Boost Users :

Subject: Re: [Boost-users] Include line number in boost logs
From: Florian Lindner (mailinglists_at_[hidden])
Date: 2015-09-03 06:08:16


Leon Mlakar wrote:

> On 25.08.2015 11:15, Florian Lindner wrote:
>> I finally got it. Shared the answer on stack overflow:
>>
>> http://stackoverflow.com/a/32200033/3585934
>>
>>
>>
> Thank you for sharing this.

I have just discovered that:

http://www.boost.org/doc/libs/1_59_0/libs/log/doc/html/boost/log/add_value.html

which seems to do exactly the same without so much code hassle.

I wonder why the discoverability of features with boost log is so bad? I was
looking for a solution for that standard task to log line numbers for weeks,
but never discovered that (and people who wrote all that question postings
and answers I read either)

The function add_value is not even mentioned in the manual about attributes
http://www.boost.org/doc/libs/1_59_0/libs/log/doc/html/log/detailed/attributes.html


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net