|
|
Sponsor |
Question on logger hierarchy: msg#00020apache.logging.log4cxx.user
Dear developers, I'm new to log4* and I'm wondering how I can achieve the following goal: I want to have a top level logger, logging to cerr with a level WARNING. Below may be several other loggers with their own appenders, layouts and logging levels. If I trigger an error or warning on these descendant loggers, the message (if enabled at all) should be forwarded to the top-level logger, logging to cerr. I think, this is the purpose of the logger hierarchy. My attempt to this failed, because all messages enabled at the descendant loggers are forwarded to its ancestors, which do not check the log level anymore. Why should this behaviour be useful? Why should I use a logger hierarchy, if I cannot influence the logging through the different log levels? How can I achive my goal? In future releases, it would be very convenient to have logger methods, which allow printf-like formatting. Yours sincerly, Robert Haschke -------------------------------------------------------------------------- Dipl.-Inform. Robert Haschke Faculty of Technology, Neuroinformatics Group, M7-123 University of Bielefeld 33501 Bielefeld, Germany phone: +49-521-106 6066, fax: +49-521-106 6011
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | new version?, Chittka Tim |
|---|---|
| Next by Date: | Re: Question on logger hierarchy, Curt Arnold |
| Previous by Thread: | new version?, Chittka Tim |
| Next by Thread: | Re: Question on logger hierarchy, Curt Arnold |
| 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.
|