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.
