Boost logo

Boost :

Subject: Re: [boost] Phoenix V3 and Logging library help.
From: Fernando Pelliccioni (fpelliccioni_at_[hidden])
Date: 2011-07-04 15:31:35


Thanks Andrey,

On Mon, Jul 4, 2011 at 3:22 PM, Andrey Semashev
<andrey.semashev_at_[hidden]>wrote:

> On 07/04/2011 07:04 PM, Fernando Pelliccioni wrote:
>
>> Hi Thomas, all,
>>
>> I am researching about logging libraries.
>> I had to discard Boost.Log ( from Andrey) because this library does not
>> support GCC 3.4.
>> I've seen other libraries, but none convinced me.
>>
>
> A few notes, if I may:
>
> 1. You probably wouldn't want the streaming expressions to be executed when
> the record is dropped anyway (e.g. when its severity level is not high
> enough). So there should be some "if (dl.is_enabled(info))" before each
> logging expression. Such check is usually hidden behind macros.
>
> 2. Thread safety and contention might be an issue. If there's going to be a
> global logger, accessible from different parts of program, it will have to
> synchronize concurrent access from different threads and, if possible, not
> to block for too long.
>
>
The example I wrote is very simple, just to show the concept.
I will consider your recommendations.

> Also, did you take a look at Google glog?
>
> http://code.google.com/p/**google-glog/>
>
> I don't know about support for GCC 3.4, but it looks simple enough.
>

I've seen, but it seems very alpha.

Thank you!
Fernando.


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