public class LoggingManagementMBean extends AMQManagedObject implements LoggingManagement
COMPOSITE_ITEM_DESCRIPTIONS, COMPOSITE_ITEM_NAMES, LOGGER_LEVEL, LOGGER_NAME, TABULAR_UNIQUE_INDEX, TYPE
DOMAIN
Constructor and Description |
---|
LoggingManagementMBean(BrokerFileLogger brokerFileLogger,
ManagedObjectRegistry registry) |
Modifier and Type | Method and Description |
---|---|
String[] |
getAvailableLoggerLevels()
Attribute to represent the available log4j logger output levels.
|
String |
getConfigFileRootLoggerLevel()
Attribute to represent the level of the Log4J RootLogger within the xml configuration file
|
Integer |
getLog4jLogWatchInterval()
Attribute to represent the log4j xml configuration file's LogWatch interval.
|
String |
getObjectInstanceName() |
ManagedObject |
getParentObject() |
String |
getRuntimeRootLoggerLevel()
Attribute to represent the level of the active Log4J RootLogger
|
void |
reloadConfigFile()
Reloads the log4j configuration file, applying any changes made.
|
boolean |
setConfigFileLoggerLevel(String logger,
String level)
Updates the level of an existing Log4J logger within the xml configuration file
|
boolean |
setConfigFileRootLoggerLevel(String level)
Updates the level of the Log4J RootLogger within the xml configuration file if it is present
|
boolean |
setRuntimeLoggerLevel(String logger,
String level)
Sets the level of an active Log4J logger
|
boolean |
setRuntimeRootLoggerLevel(String level)
Sets the level of the active Log4J RootLogger
|
TabularData |
viewConfigFileLoggerLevels()
Retrieves a TabularData set of the existing Log4J loggers within the xml configuration file
|
TabularData |
viewEffectiveRuntimeLoggerLevels()
Retrieves a TabularData set of the active log4j loggers and their levels
|
addNotificationListener, getBroadcaster, incrementAndGetSequenceNumber, removeNotificationListener
getHierarchicalName, getHierarchicalType, getManagementInterface, getMBeanInfo, getNotificationInfo, getObjectName, getObjectNameForSingleInstanceMBean, getRegistry, getType, register, toString, unregister
cacheMBeanInfo, getAttribute, getAttributes, getCachedMBeanInfo, getClassName, getConstructors, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getImpact, getImplementation, getImplementationClass, getMBeanInterface, getParameterName, getParameterName, invoke, postDeregister, postRegister, preDeregister, preRegister, setAttribute, setAttributes, setImplementation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getNotificationInfo
public LoggingManagementMBean(BrokerFileLogger brokerFileLogger, ManagedObjectRegistry registry) throws JMException
JMException
public String getObjectInstanceName()
getObjectInstanceName
in interface ManagedObject
public ManagedObject getParentObject()
getParentObject
in interface ManagedObject
getParentObject
in class DefaultManagedObject
public Integer getLog4jLogWatchInterval()
LoggingManagement
getLog4jLogWatchInterval
in interface LoggingManagement
public String[] getAvailableLoggerLevels()
LoggingManagement
getAvailableLoggerLevels
in interface LoggingManagement
public TabularData viewEffectiveRuntimeLoggerLevels()
LoggingManagement
viewEffectiveRuntimeLoggerLevels
in interface LoggingManagement
public String getRuntimeRootLoggerLevel()
LoggingManagement
getRuntimeRootLoggerLevel
in interface LoggingManagement
public boolean setRuntimeRootLoggerLevel(String level)
LoggingManagement
setRuntimeRootLoggerLevel
in interface LoggingManagement
level
- The level to set the RootLogger topublic boolean setRuntimeLoggerLevel(String logger, String level)
LoggingManagement
setRuntimeLoggerLevel
in interface LoggingManagement
logger
- The name of the loggerlevel
- The level to set the logger topublic TabularData viewConfigFileLoggerLevels()
LoggingManagement
viewConfigFileLoggerLevels
in interface LoggingManagement
public String getConfigFileRootLoggerLevel() throws IOException
LoggingManagement
getConfigFileRootLoggerLevel
in interface LoggingManagement
IOException
public boolean setConfigFileLoggerLevel(String logger, String level)
LoggingManagement
setConfigFileLoggerLevel
in interface LoggingManagement
logger
- The name of the loggerlevel
- The level to set the logger topublic boolean setConfigFileRootLoggerLevel(String level)
LoggingManagement
setConfigFileRootLoggerLevel
in interface LoggingManagement
level
- The level to set the logger topublic void reloadConfigFile() throws IOException
LoggingManagement
reloadConfigFile
in interface LoggingManagement
IOException
Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.