LoggerConfigAdminMBeanpublic class LoggerConfigAdmin extends Object implements LoggerConfigAdminMBean
LoggerConfigAdminMBean interface.PATTERN| Constructor | Description |
|---|---|
LoggerConfigAdmin(LoggerContext loggerContext,
LoggerConfig loggerConfig) |
Constructs a new
LoggerConfigAdmin with the specified LoggerContext
and logger config. |
| Modifier and Type | Method | Description |
|---|---|---|
String[] |
getAppenderRefs() |
Returns a String array with the appender refs configured for the
instrumented
LoggerConfig. |
String |
getFilter() |
Returns a string description of all filters configured for the
instrumented
LoggerConfig. |
String |
getLevel() |
Returns the
LoggerConfig level as a String. |
String |
getName() |
Returns the name of the instrumented
LoggerConfig. |
ObjectName |
getObjectName() |
Returns the
ObjectName of this mbean. |
boolean |
isAdditive() |
Returns whether the instrumented
LoggerConfig is additive. |
boolean |
isIncludeLocation() |
Returns whether the instrumented
LoggerConfig is configured to
include location. |
void |
setAdditive(boolean additive) |
Sets whether the instrumented
LoggerConfig should be additive. |
void |
setLevel(String level) |
Sets the
LoggerConfig level to the specified value. |
public LoggerConfigAdmin(LoggerContext loggerContext, LoggerConfig loggerConfig)
LoggerConfigAdmin with the specified LoggerContext
and logger config.loggerContext - used in the ObjectName for this mbeanloggerConfig - the instrumented objectpublic ObjectName getObjectName()
ObjectName of this mbean.ObjectNameLoggerConfigAdminMBean.PATTERNpublic String getName()
LoggerConfigAdminMBeanLoggerConfig.getName in interface LoggerConfigAdminMBeanpublic String getLevel()
LoggerConfigAdminMBeanLoggerConfig level as a String.getLevel in interface LoggerConfigAdminMBeanLoggerConfig level.public void setLevel(String level)
LoggerConfigAdminMBeanLoggerConfig level to the specified value.setLevel in interface LoggerConfigAdminMBeanlevel - the new LoggerConfig level.public boolean isAdditive()
LoggerConfigAdminMBeanLoggerConfig is additive.isAdditive in interface LoggerConfigAdminMBeantrue if the LoggerConfig is additive, false
otherwisepublic void setAdditive(boolean additive)
LoggerConfigAdminMBeanLoggerConfig should be additive.setAdditive in interface LoggerConfigAdminMBeanadditive - true if the instrumented LoggerConfig should be
additive, false otherwisepublic boolean isIncludeLocation()
LoggerConfigAdminMBeanLoggerConfig is configured to
include location.isIncludeLocation in interface LoggerConfigAdminMBeanpublic String getFilter()
LoggerConfigAdminMBeanLoggerConfig.getFilter in interface LoggerConfigAdminMBeanpublic String[] getAppenderRefs()
LoggerConfigAdminMBeanLoggerConfig.getAppenderRefs in interface LoggerConfigAdminMBeanLoggerConfig.Copyright © 1999-2018. 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.