public class LoggerConfigAdmin extends java.lang.Object implements LoggerConfigAdminMBean
LoggerConfigAdminMBean
interface.Modifier and Type | Field and Description |
---|---|
private LoggerConfig |
loggerConfig |
private LoggerContext |
loggerContext |
private javax.management.ObjectName |
objectName |
PATTERN
Constructor and Description |
---|
LoggerConfigAdmin(LoggerContext loggerContext,
LoggerConfig loggerConfig)
Constructs a new
LoggerConfigAdmin with the specified LoggerContext
and logger config. |
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getAppenderRefs()
Returns a String array with the appender refs configured for the
instrumented
LoggerConfig . |
java.lang.String |
getFilter()
Returns a string description of all filters configured for the
instrumented
LoggerConfig . |
java.lang.String |
getLevel()
Returns the
LoggerConfig level as a String. |
java.lang.String |
getName()
Returns the name of the instrumented
LoggerConfig . |
javax.management.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(java.lang.String level)
Sets the
LoggerConfig level to the specified value. |
private final LoggerContext loggerContext
private final LoggerConfig loggerConfig
private final javax.management.ObjectName objectName
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 javax.management.ObjectName getObjectName()
ObjectName
of this mbean.ObjectName
LoggerConfigAdminMBean.PATTERN
public java.lang.String getName()
LoggerConfigAdminMBean
LoggerConfig
.getName
in interface LoggerConfigAdminMBean
public java.lang.String getLevel()
LoggerConfigAdminMBean
LoggerConfig
level as a String.getLevel
in interface LoggerConfigAdminMBean
LoggerConfig
level.public void setLevel(java.lang.String level)
LoggerConfigAdminMBean
LoggerConfig
level to the specified value.setLevel
in interface LoggerConfigAdminMBean
level
- the new LoggerConfig
level.public boolean isAdditive()
LoggerConfigAdminMBean
LoggerConfig
is additive.isAdditive
in interface LoggerConfigAdminMBean
true
if the LoggerConfig is additive, false
otherwisepublic void setAdditive(boolean additive)
LoggerConfigAdminMBean
LoggerConfig
should be additive.setAdditive
in interface LoggerConfigAdminMBean
additive
- true
if the instrumented LoggerConfig should be
additive, false
otherwisepublic boolean isIncludeLocation()
LoggerConfigAdminMBean
LoggerConfig
is configured to
include location.isIncludeLocation
in interface LoggerConfigAdminMBean
public java.lang.String getFilter()
LoggerConfigAdminMBean
LoggerConfig
.getFilter
in interface LoggerConfigAdminMBean
public java.lang.String[] getAppenderRefs()
LoggerConfigAdminMBean
LoggerConfig
.getAppenderRefs
in interface LoggerConfigAdminMBean
LoggerConfig
.