[logback-dev] Why ResilientOutputStreamBase does not write the log message after attempt the recovery?
Tom Liu
Tom.SH.Liu at MorganStanley.com
Tue Apr 13 10:42:16 CEST 2010
Hi logback-dev,
I wonder why ResilientOutputStreamBase does not try to write the log
message after attempt the recovery?
What's the consideration here?
public void write(byte b[], int off, int len) {
if (isPresumedInError()) {
if (!recoveryCoordinator.isTooSoon()) {
attemptRecovery();
}
return; // return regardless of the success of the recovery attempt
}
try {
os.write(b, off, len);
postSuccessfulWrite();
} catch (IOException e) {
postIOFailure(e);
}
}
Thanks very much,
Tom
More information about the logback-dev
mailing list