|
|
Sponsor |
Request: flushAll method on loggers for writer appenders: msg#00063apache.logging.log4cxx.user
Hello, Would it be possible to add a flushAll() method on the logger & appender interfaces that will trigger an immediate flush of the ostreams of the WriterAppender derived classes? Reason we need it, is we have a very demanding application which need to use the BufferedIO/ImmediateFlush pair for gaining performance, but at some stage (when getting a specific signal) we would also like to be able to flush whatever is currently in the buffers. The only way I know of doing it non-intrusively at present is: 1. Iterating on all the appenders on the logger's hierarchy. 2. Setting the BufferedIO/ImmediateFlush to false/true respectively. 3. Sending a "Flushing All" bogus message. 4. Reverting flags to what they were before by re-iterating on appenders. Which, needless to say, is an extremely ugly solution... Implementing it as part of log4cxx (and/or log4j?!) seems much simpler and cleaner. Thanks, Please let me know what you think, Barak ________________________ Barak Simon GED IT Core Platform Deutsche Bank 190 George St. Sydney, 2000 Phone +61 2 925 85070 Fax +61 2 925 95050 -- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Book on Log4cxx, CodeBase |
|---|---|
| Next by Date: | Logging for Different Packages, Manish Moorjani |
| Previous by Thread: | CVS might be close to usable, Curt Arnold |
| Next by Thread: | Logging for Different Packages, Manish Moorjani |
| 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.
|