Package org.apache.activemq.broker.jmx
Interface Log4JConfigViewMBean
- All Known Implementing Classes:
Log4JConfigView
public interface Log4JConfigViewMBean
Log4J Configuration Management MBean used to alter the runtime log levels
or force a reload of the Log4J configuration file.
-
Method Summary
Modifier and TypeMethodDescriptionlist of all the logger names and their levelsgetLogLevel(String loggerName) Get the log level for a given loggerGet the log level for the root loggervoidReloads log4j.properties from the classpath.voidsetLogLevel(String loggerName, String level) Set the log level for a given loggervoidsetRootLogLevel(String level) Get the log level for the root logger
-
Method Details
-
getRootLogLevel
Get the log level for the root logger- Throws:
Exception- if an error occurs while getting the root level.
-
setRootLogLevel
Get the log level for the root logger- Parameters:
level- the new level to assign to the root logger.- Throws:
Exception- if an error occurs while setting the root level.
-
getLoggers
list of all the logger names and their levels- Returns:
- a List of all known loggers names.
- Throws:
Exception- if an error occurs while getting the loggers.
-
getLogLevel
Get the log level for a given logger- Parameters:
loggerName- the name of the logger whose level should be queried.- Returns:
- the current log level of the given logger.
- Throws:
Exception- if an error occurs while getting the log level.
-
setLogLevel
Set the log level for a given logger- Parameters:
loggerName- the name of the logger whose level is to be adjusted.level- the new level to assign the given logger.- Throws:
Exception- if an error occurs while setting the log level.
-
reloadLog4jProperties
Reloads log4j.properties from the classpath.
-