public class LoggingManagementMBean extends AMQManagedObject implements LoggingManagement
COMPOSITE_ITEM_DESCRIPTIONS, COMPOSITE_ITEM_NAMES, LOGGER_LEVEL, LOGGER_NAME, TABULAR_UNIQUE_INDEX, TYPEDOMAIN| 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, removeNotificationListenergetHierarchicalName, getHierarchicalType, getManagementInterface, getMBeanInfo, getNotificationInfo, getObjectName, getObjectNameForSingleInstanceMBean, getRegistry, getType, register, toString, unregistercacheMBeanInfo, 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, setImplementationclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetNotificationInfopublic LoggingManagementMBean(BrokerFileLogger brokerFileLogger, ManagedObjectRegistry registry) throws JMException
JMExceptionpublic String getObjectInstanceName()
getObjectInstanceName in interface ManagedObjectpublic ManagedObject getParentObject()
getParentObject in interface ManagedObjectgetParentObject in class DefaultManagedObjectpublic Integer getLog4jLogWatchInterval()
LoggingManagementgetLog4jLogWatchInterval in interface LoggingManagementpublic String[] getAvailableLoggerLevels()
LoggingManagementgetAvailableLoggerLevels in interface LoggingManagementpublic TabularData viewEffectiveRuntimeLoggerLevels()
LoggingManagementviewEffectiveRuntimeLoggerLevels in interface LoggingManagementpublic String getRuntimeRootLoggerLevel()
LoggingManagementgetRuntimeRootLoggerLevel in interface LoggingManagementpublic boolean setRuntimeRootLoggerLevel(String level)
LoggingManagementsetRuntimeRootLoggerLevel in interface LoggingManagementlevel - The level to set the RootLogger topublic boolean setRuntimeLoggerLevel(String logger, String level)
LoggingManagementsetRuntimeLoggerLevel in interface LoggingManagementlogger - The name of the loggerlevel - The level to set the logger topublic TabularData viewConfigFileLoggerLevels()
LoggingManagementviewConfigFileLoggerLevels in interface LoggingManagementpublic String getConfigFileRootLoggerLevel() throws IOException
LoggingManagementgetConfigFileRootLoggerLevel in interface LoggingManagementIOExceptionpublic boolean setConfigFileLoggerLevel(String logger, String level)
LoggingManagementsetConfigFileLoggerLevel in interface LoggingManagementlogger - The name of the loggerlevel - The level to set the logger topublic boolean setConfigFileRootLoggerLevel(String level)
LoggingManagementsetConfigFileRootLoggerLevel in interface LoggingManagementlevel - The level to set the logger topublic void reloadConfigFile()
throws IOException
LoggingManagementreloadConfigFile in interface LoggingManagementIOExceptionCopyright © 2006–2016 The Apache Software Foundation. All rights reserved.