logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 28647] - Add "Flush on Level" capability to FileAppender
Date Thu, 06 May 2004 04:24:30 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=28647>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=28647

Add "Flush on Level" capability to FileAppender





------- Additional Comments From sdorrat@jbwere.com.au  2004-05-06 04:24 -------
It does make sense.  In the first approach however (wrapper buffering events 
then sending them all at once to the wrapped appender upon flush), you lose 
most of the advantage of buffering.  This is because the wrapped appender will 
still execute all events one by one when 'flushed'.  I.e for a file writer it 
would still be still be one disk i/o per event.

The second strategy was the one I implemented (though via inheritance rather 
than as a decorator). Not convinced either way yet.  Will get the performance 
testing done tonight or tommorow on the current implementation.

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message