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 AppenderAdmin(String contextName, Appender appender)
AppenderAdmin
with the specified contextName
and appender.contextName
- used in the ObjectName
for this mbeanappender
- the instrumented objectpublic ObjectName getObjectName()
ObjectName
of this mbean.ObjectName
AppenderAdminMBean.PATTERN
public String getName()
AppenderAdminMBean
Appender
.getName
in interface AppenderAdminMBean
public String getLayout()
AppenderAdminMBean
toString
on the Layout
object of the instrumented Appender
.getLayout
in interface AppenderAdminMBean
Layout
of the instrumented Appender
as a
stringpublic boolean isIgnoreExceptions()
AppenderAdminMBean
Appender
are
handled.isIgnoreExceptions
in interface AppenderAdminMBean
true
if any exceptions thrown by the Appender will be
logged or false
if such exceptions are re-thrown.public String getErrorHandler()
AppenderAdminMBean
toString
on the error handler of
this appender, or "null"
if no error handler was set.getErrorHandler
in interface AppenderAdminMBean
toString
on the error handler of this
appender, or "null"
public String getFilter()
AppenderAdminMBean
Appender
.getFilter
in interface AppenderAdminMBean
Copyright © 1999-2021 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.