public class AppenderLoggingException extends LoggingException
StatusLogger
. Appenders should only throw exceptions when an error
prevents an event from being written. Appenders must throw an exception in this case so that error-handling
features like the FailoverAppender
work properly.
Also note that appenders must provide a way to suppress exceptions when the user desires and abide by
that instruction. See Appender.ignoreExceptions()
, which is the standard
way to do this.
Constructor and Description |
---|
AppenderLoggingException(String message)
Constructs an exception with a message.
|
AppenderLoggingException(String format,
Object... args)
Constructs an exception with a message.
|
AppenderLoggingException(String message,
Throwable cause)
Constructs an exception with a message and underlying cause.
|
AppenderLoggingException(Throwable cause)
Constructs an exception with an underlying cause.
|
AppenderLoggingException(Throwable cause,
String format,
Object... args)
Constructs an exception with a message.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public AppenderLoggingException(String message)
message
- The reason for the exceptionpublic AppenderLoggingException(String format, Object... args)
format
- The reason format for the exception, see String.format(String, Object...)
.args
- The reason arguments for the exception, see String.format(String, Object...)
.public AppenderLoggingException(String message, Throwable cause)
message
- The reason for the exceptioncause
- The underlying cause of the exceptionpublic AppenderLoggingException(Throwable cause)
cause
- The underlying cause of the exceptionpublic AppenderLoggingException(Throwable cause, String format, Object... args)
cause
- The underlying cause of the exceptionformat
- The reason format for the exception, see String.format(String, Object...)
.args
- The reason arguments for the exception, see String.format(String, Object...)
. Copyright © 1999-2023 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.