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!

Request: flushAll method on loggers for writer appenders: msg#00063

apache.logging.log4cxx.user

Subject: Request: flushAll method on loggers for writer appenders

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>
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