public class AppenderAdmin extends Object implements AppenderAdminMBean
AppenderAdminMBean interface.PATTERN| Constructor and Description |
|---|
AppenderAdmin(String contextName,
Appender appender)
Constructs a new
AppenderAdmin with the specified contextName
and appender. |
| Modifier and Type | Method and Description |
|---|---|
String |
getErrorHandler()
Returns the result of calling
toString on the error handler of
this appender, or "null" if no error handler was set. |
String |
getFilter()
Returns a string description of all filters configured for the
instrumented
Appender. |
String |
getLayout()
Returns the result of calling
toString on the Layout
object of the instrumented Appender. |
String |
getName()
Returns the name of the instrumented
Appender. |
ObjectName |
getObjectName()
Returns the
ObjectName of this mbean. |
boolean |
isIgnoreExceptions()
Returns how exceptions thrown on the instrumented
Appender are
handled. |
public ObjectName getObjectName()
ObjectName of this mbean.ObjectNameAppenderAdminMBean.PATTERNpublic String getName()
AppenderAdminMBeanAppender.getName in interface AppenderAdminMBeanpublic String getLayout()
AppenderAdminMBeantoString on the Layout
object of the instrumented Appender.getLayout in interface AppenderAdminMBeanLayout of the instrumented Appender as a
stringpublic boolean isIgnoreExceptions()
AppenderAdminMBeanAppender are
handled.isIgnoreExceptions in interface AppenderAdminMBeantrue if any exceptions thrown by the Appender will be
logged or false if such exceptions are re-thrown.public String getErrorHandler()
AppenderAdminMBeantoString on the error handler of
this appender, or "null" if no error handler was set.getErrorHandler in interface AppenderAdminMBeantoString on the error handler of this
appender, or "null"public String getFilter()
AppenderAdminMBeanAppender.getFilter in interface AppenderAdminMBeanCopyright © 1999-2021 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.