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 [EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
