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 (without changing the flags) 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 less than elegant 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.
