public interface Log4JConfigViewMBean
Modifier and Type | Method and Description |
---|---|
List<String> |
getLoggers()
list of all the logger names and their levels
|
String |
getLogLevel(String loggerName)
Get the log level for a given logger
|
String |
getRootLogLevel()
Get the log level for the root logger
|
void |
reloadLog4jProperties()
Reloads log4j.properties from the classpath.
|
void |
setLogLevel(String loggerName,
String level)
Set the log level for a given logger
|
void |
setRootLogLevel(String level)
Get the log level for the root logger
|
String getRootLogLevel() throws Exception
Exception
- if an error occurs while getting the root level.void setRootLogLevel(String level) throws Exception
level
- the new level to assign to the root logger.Exception
- if an error occurs while setting the root level.List<String> getLoggers() throws Exception
Exception
- if an error occurs while getting the loggers.String getLogLevel(String loggerName) throws Exception
loggerName
- the name of the logger whose level should be queried.Exception
- if an error occurs while getting the log level.void setLogLevel(String loggerName, String level) throws Exception
loggerName
- the name of the logger whose level is to be adjusted.level
- the new level to assign the given logger.Exception
- if an error occurs while setting the log level.void reloadLog4jProperties() throws Throwable
Copyright © 2005–2017 The Apache Software Foundation. All rights reserved.