From: John Eddy (johneddy_at_[hidden])
Date: 2005-04-25 18:33:10
John Torjo wrote:
>> Hi. If I understand right the code, even if log is disabled, I do pay
>> for constructing
>> log messages. Am I right? If so why do you force this?
> No, you donot pay.
> BOOST_LOG(app) << "testing " << i << '-' << j << '-' << k;
> Is the equivalent of:
> if ( is_log_enabled(app) ) app_log() << "testing" << i ...;
Is it the case however that we'll have to pay the cost of evaluating
whatever arguments are supplied (for example if some of them are
function calls etc.)?
BOOST_LOG(app) << "testing " << fctn() << '-' << j << '-' << k;
Will fctn() be called if !is_log_enabled(app)?