|
|
Sponsor |
Re: The logging macros: msg#00039apache.logging.log4cxx.user
Mattias Brändström <thebrasse@xxxxxxxxxx> wrote on 08/26/2004 09:10:04 AM: > 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? Again, all I can tell you is that all your performance penalty is in the following line: if (logger->isEnabledFor(level)) If you are not willing to pay it at production runtime, you have a choices of wrapping your calls into #ifdefs or redefining LOG_DEBUG into nothing and have compile time control. I am not aware of built-in compile time control mechanism with log4cxx. Alex
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: The logging macros, Mattias Brändström |
|---|---|
| Next by Date: | RE: How to link with log4cxx dll?, Jwahar Bammi |
| Previous by Thread: | Re: The logging macros, Mattias Brändström |
| Next by Thread: | Re: The logging macros, drkm |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive 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 |
Home | sitemap
| advertise | OSDir is
an inevitable website.
|