|
|
Sponsor |
Re: Question on logger hierarchy: msg#00021apache.logging.log4cxx.user
On Sep 8, 2004, at 7:38 AM, Robert Haschke wrote: Dear developers, It allows you to lower the threshold of a specific child logger while suppressing all other loggers. It is an established log4j behavior and not subject to change. The scenario is discussed in the section "Setting the level of a logger" (pg 55) of "The complete manual log4j", but I didn't see it discussed online. Why should I You should be able to set the threshold on the appender attached to the root logger.
I'd like to keep the LOG4CXX_level macros as simple as possible (and simpler than they are now). I don't think printf is desirable since so many had things can happen if the format specifiers don't match the arguments. However, making it simple to do logging involving operator<< is a worthwhile goal, something like: LOG4CXX_DEBUG_STREAM(logger, "The current count is " << count); which would be equivalent to something like: LOG4CXX_DEBUG(logger, ((std::ostringstream)() << The current count is " << count).str());
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Question on logger hierarchy, Robert Haschke |
|---|---|
| Next by Date: | Re: Question on logger hierarchy, Christophe de VIENNE |
| Previous by Thread: | Question on logger hierarchy, Robert Haschke |
| Next by Thread: | Re: Question on logger hierarchy, Christophe de VIENNE |
| 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.
|