Class AppenderAdmin
java.lang.Object
org.apache.logging.log4j.core.jmx.AppenderAdmin
- All Implemented Interfaces:
AppenderAdminMBean
Implementation of the
AppenderAdminMBean interface.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Appenderprivate final Stringprivate final ObjectNameFields inherited from interface org.apache.logging.log4j.core.jmx.AppenderAdminMBean
PATTERN -
Constructor Summary
ConstructorsConstructorDescriptionAppenderAdmin(String contextName, Appender appender) Constructs a newAppenderAdminwith the specified contextName and appender. -
Method Summary
Modifier and TypeMethodDescriptionReturns the result of callingtoStringon the error handler of this appender, or"null"if no error handler was set.Returns a string description of all filters configured for the instrumentedAppender.Returns the result of callingtoStringon theLayoutobject of the instrumentedAppender.getName()Returns the name of the instrumentedAppender.Returns theObjectNameof this mbean.booleanReturns how exceptions thrown on the instrumentedAppenderare handled.
-
Field Details
-
contextName
-
appender
-
objectName
-
-
Constructor Details
-
AppenderAdmin
Constructs a newAppenderAdminwith the specified contextName and appender.- Parameters:
contextName- used in theObjectNamefor this mbeanappender- the instrumented object
-
-
Method Details
-
getObjectName
Returns theObjectNameof this mbean.- Returns:
- the
ObjectName - See Also:
-
getName
Description copied from interface:AppenderAdminMBeanReturns the name of the instrumentedAppender.- Specified by:
getNamein interfaceAppenderAdminMBean- Returns:
- the name of the Appender
-
getLayout
Description copied from interface:AppenderAdminMBeanReturns the result of callingtoStringon theLayoutobject of the instrumentedAppender.- Specified by:
getLayoutin interfaceAppenderAdminMBean- Returns:
- the
Layoutof the instrumentedAppenderas a string
-
isIgnoreExceptions
public boolean isIgnoreExceptions()Description copied from interface:AppenderAdminMBeanReturns how exceptions thrown on the instrumentedAppenderare handled.- Specified by:
isIgnoreExceptionsin interfaceAppenderAdminMBean- Returns:
trueif any exceptions thrown by the Appender will be logged orfalseif such exceptions are re-thrown.
-
getErrorHandler
Description copied from interface:AppenderAdminMBeanReturns the result of callingtoStringon the error handler of this appender, or"null"if no error handler was set.- Specified by:
getErrorHandlerin interfaceAppenderAdminMBean- Returns:
- result of calling
toStringon the error handler of this appender, or"null"
-
getFilter
Description copied from interface:AppenderAdminMBeanReturns a string description of all filters configured for the instrumentedAppender.- Specified by:
getFilterin interfaceAppenderAdminMBean- Returns:
- a string description of all configured filters for this appender
-