Class AppenderAdmin
java.lang.Object
org.apache.logging.log4j.core.jmx.AppenderAdmin
- All Implemented Interfaces:
- AppenderAdminMBean
Implementation of the 
AppenderAdminMBean interface.- 
Field SummaryFields inherited from interface org.apache.logging.log4j.core.jmx.AppenderAdminMBeanPATTERN
- 
Constructor SummaryConstructorsConstructorDescriptionAppenderAdmin(String contextName, Appender appender) Constructs a newAppenderAdminwith the specified contextName and appender.
- 
Method SummaryModifier 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.
- 
Constructor Details- 
AppenderAdminConstructs a newAppenderAdminwith the specified contextName and appender.- Parameters:
- contextName- used in the- ObjectNamefor this mbean
- appender- the instrumented object
 
 
- 
- 
Method Details- 
getObjectNameReturns theObjectNameof this mbean.- Returns:
- the ObjectName
- See Also:
 
- 
getNameDescription copied from interface:AppenderAdminMBeanReturns the name of the instrumentedAppender.- Specified by:
- getNamein interface- AppenderAdminMBean
- Returns:
- the name of the Appender
 
- 
getLayoutDescription copied from interface:AppenderAdminMBeanReturns the result of callingtoStringon theLayoutobject of the instrumentedAppender.- Specified by:
- getLayoutin interface- AppenderAdminMBean
- Returns:
- the Layoutof the instrumentedAppenderas a string
 
- 
isIgnoreExceptionspublic boolean isIgnoreExceptions()Description copied from interface:AppenderAdminMBeanReturns how exceptions thrown on the instrumentedAppenderare handled.- Specified by:
- isIgnoreExceptionsin interface- AppenderAdminMBean
- Returns:
- trueif any exceptions thrown by the Appender will be logged or- falseif such exceptions are re-thrown.
 
- 
getErrorHandlerDescription 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 interface- AppenderAdminMBean
- Returns:
- result of calling toStringon the error handler of this appender, or"null"
 
- 
getFilterDescription copied from interface:AppenderAdminMBeanReturns a string description of all filters configured for the instrumentedAppender.- Specified by:
- getFilterin interface- AppenderAdminMBean
- Returns:
- a string description of all configured filters for this appender
 
 
-