logging-log4cxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Curt Arnold <carn...@apache.org>
Subject Re: Re[2]: Unicode Logging questions
Date Wed, 02 Feb 2005 09:51:38 GMT

On Feb 2, 2005, at 2:23 AM, LECHNER Martin wrote:

> Thanks a lot for your help.
> This answers a few questions, and gives new ideas;)
>
> At the moment I have Logging turned off by redefining the macros.
> I think I will try to wrap the logstream isid a macro and see what 
> happen.
>

I guess you could do something like:

#define LOG4CXX_STREAM(stream, ops) \
if (stream.isEnabled()) { stream << ops << LOG4CXX_ENDMSG; }

Which could eliminate the cost of short-circuiting each insertion 
operation and constructing the LocationInfo.  Please experiment and 
report back.


> Beside:
> Thanks for doing such a great work with log4cxx.
> I really like it - and its seems to get even better ;)
>

Thanks.


Mime
View raw message