Class AppenderAdmin
java.lang.Object
org.apache.logging.log4j.core.jmx.AppenderAdmin
- All Implemented Interfaces:
AppenderAdminMBean
Implementation of the
AppenderAdminMBean
interface.-
Field Summary
Fields inherited from interface org.apache.logging.log4j.core.jmx.AppenderAdminMBean
PATTERN
-
Constructor Summary
ConstructorDescriptionAppenderAdmin
(String contextName, Appender appender) Constructs a newAppenderAdmin
with the specified contextName and appender. -
Method Summary
Modifier and TypeMethodDescriptionReturns the result of callingtoString
on 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 callingtoString
on theLayout
object of the instrumentedAppender
.getName()
Returns the name of the instrumentedAppender
.Returns theObjectName
of this mbean.boolean
Returns how exceptions thrown on the instrumentedAppender
are handled.
-
Constructor Details
-
AppenderAdmin
Constructs a newAppenderAdmin
with the specified contextName and appender.- Parameters:
contextName
- used in theObjectName
for this mbeanappender
- the instrumented object
-
-
Method Details
-
getObjectName
Returns theObjectName
of this mbean.- Returns:
- the
ObjectName
- See Also:
-
getName
Description copied from interface:AppenderAdminMBean
Returns the name of the instrumentedAppender
.- Specified by:
getName
in interfaceAppenderAdminMBean
- Returns:
- the name of the Appender
-
getLayout
Description copied from interface:AppenderAdminMBean
Returns the result of callingtoString
on theLayout
object of the instrumentedAppender
.- Specified by:
getLayout
in interfaceAppenderAdminMBean
- Returns:
- the
Layout
of the instrumentedAppender
as a string
-
isIgnoreExceptions
public boolean isIgnoreExceptions()Description copied from interface:AppenderAdminMBean
Returns how exceptions thrown on the instrumentedAppender
are handled.- Specified by:
isIgnoreExceptions
in interfaceAppenderAdminMBean
- Returns:
true
if any exceptions thrown by the Appender will be logged orfalse
if such exceptions are re-thrown.
-
getErrorHandler
Description copied from interface:AppenderAdminMBean
Returns the result of callingtoString
on the error handler of this appender, or"null"
if no error handler was set.- Specified by:
getErrorHandler
in interfaceAppenderAdminMBean
- Returns:
- result of calling
toString
on the error handler of this appender, or"null"
-
getFilter
Description copied from interface:AppenderAdminMBean
Returns a string description of all filters configured for the instrumentedAppender
.- Specified by:
getFilter
in interfaceAppenderAdminMBean
- Returns:
- a string description of all configured filters for this appender
-