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

> 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?
> 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!

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