primary
Appender primary
ErrorHandler
The error message is printed on System.err, and logged in the new secondary appender.
voidvoidSystem.err.voidSystem.err.voiderror(String message,
Exception e,
int errorCode,
LoggingEvent event) System.err.voidsetAppender(Appender primary) voidsetBackupAppender(Appender backup) voidSystem.err.error in interface ErrorHandlermessage - The message associated with the error.System.err.error in interface ErrorHandlermessage - The message associated with the error.e - The Exception that was thrown when the error occurred.errorCode - The error code associated with the error.System.err.error in interface ErrorHandlermessage - The message associated with the error.e - The Exception that was thrown when the error occurred.errorCode - The error code associated with the error.event - The logging event that the failing appender is asked
to log.setAppender in interface ErrorHandlerprimary - The appendersetBackupAppender in interface ErrorHandlerbackup - The backup appendersetLogger in interface ErrorHandlerlogger - One of the loggers that will be searched for the failing
appender in view of replacement.