|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.logging.log4j.core.jmx.LoggerConfigAdmin
public class LoggerConfigAdmin
Implementation of the LoggerConfigAdminMBean interface.
| Field Summary |
|---|
| Fields inherited from interface org.apache.logging.log4j.core.jmx.LoggerConfigAdminMBean |
|---|
PATTERN |
| Constructor Summary | |
|---|---|
LoggerConfigAdmin(LoggerContext loggerContext,
LoggerConfig loggerConfig)
Constructs a new LoggerConfigAdmin with the specified contextName
and logger config. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LoggerConfigAdmin(LoggerContext loggerContext,
LoggerConfig loggerConfig)
LoggerConfigAdmin with the specified contextName
and logger config.
contextName - used in the ObjectName for this mbeanloggerConfig - the instrumented object| Method Detail |
|---|
public 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright © 1999-2014 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.