logo       

Sponsor
FREE Network Mapping Tool for Microsoft® Office Visio® Professional 2007
Don't map your network by hand - let LANsurveyor Exx press for Microsoft Visio Professional 2007 automatically create network diagrams for you!

Re: The logging macros: msg#00038

apache.logging.log4cxx.user

Subject: Re: The logging macros

Hello!

(For some reason I have messed up my inbox. This messages is intended to be a reply to Alex message)

The reason I was asking about the macros was that I am a little concerned about the performance impact of making the logging calls all the time. I sometimes want to sprinkle my code with debug messages and leave them there. If I can recompile with LOG_DEBUG types macros disabled I won't have to worry about those debug messages stealing resources from the rest of the application. Should I worry about this if I am using log4cxx?

:.:: mattias

Mattias Brändström wrote:
Hello!

I was looking at the logging macros in log4cxx and I have one question. Is there any particular reason why the macros aren't enclosed in an #if like this:

#if !defined(LOG4CXX_DISABLE_DEBUG)

macro definition here

#endif

I suspect that there is a reason for this, I just can't figure it out on my own. :-) So please enlighten me.

:.:: mattias




<Prev in Thread] Current Thread [Next in Thread>
Sponsor
FREE Network Mapping Tool for Microsoft® OfficeVisio Professional 2007
Don't map your network by hand - let LANsurveyor Express for Microsoft Visio Professional 2007
automatically create network diagrams for you!
Google Custom Search

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation

Home | sitemap | advertise | OSDir is an inevitable website. super tiny logo