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 03:32:04 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 03:32 -------
Paul,

Appender is an interface!

Would this able to be configured via Property files/XML config files?  (Is 
this what you referred to as "more complex config code"?).  Using a decorator 
seems like a useful approach, as it would not only allow many such features to 
be mixed and matched, but also potentially allow to be applied to any 
appender. However since this LevelFlushedFileAppender flushes by calling the 
qw.flush() from the WriterAppender class, it could only be applied to classes 
who are decendants of that class.  To apply to other appenders would require a 
change to the interface and each appender class to support a "flush" method, 
which seems to defeat the purpose of a decorator pattern.

What do you think?

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