|
Boost Users : |
Subject: Re: [Boost-users] Boost.Log formal review upcoming
From: Roland Bock (rbock_at_[hidden])
Date: 2010-03-01 11:12:35
Eric J. Holtman wrote:
> Roland Bock wrote:
>>
>> For instance, instead of
>>
>> BOOST_LOG_SEV(slg, normal) << "A regular message";
>>
>> I'd like to use something like
>>
>> slg.log(normal) << "A regular message";
>>
>
> Pretty sure that's done for performance, so that if the thing
> being logged is a complex expression, but yet could be trivially
> filtered, it is not evaluated.
Oh, you mean if I use some
#define MINIMUM_LOG_LEVEL 3
then some of these lines are not evaluated?
If the respective parts were header only, I wonder if the same could not
be done without the MACROS (but with compiler optimization).
Regards,
Roland
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