You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by Albert Yu <al...@imtf.ie> on 2003/08/05 12:04:56 UTC
FallbackErrorHandler loses the last event when switching to backup appender
Hi,
I found FallbackErrorHandler loses the last event when switching to backup appender, I suggest to add one line to the end of method error(String message, Exception e, int errorCode, LoggingEvent event) :
------------------------------------------
FallbackErrorHandler.java
-------------------------------------------
public void error(String message, Exception e, int errorCode, LoggingEvent event) {
......................
backup.doAppend(event); //// Please add this line
}
Best regards,
Albert
-----------------------------
Albert Yu
( Yu Yizhuan )
Software Engineer