java.util.logging
public interface LoggingMXBean
LogManager.getLoggingMXBean()
.Modifier and Type | Method and Description |
---|---|
String |
getLoggerLevel(String logger)
Return the name of the logging level given the name of
a logger.
|
List<String> |
getLoggerNames()
Return a list of all logger names.
|
String |
getParentLoggerName(String logger)
Return the name of the parent of the indicated logger.
|
void |
setLoggerLevel(String logger,
String level)
Sets the logging level for a particular logger.
|
String getLoggerLevel(String logger)
logger
- the logger's nameList<String> getLoggerNames()
String getParentLoggerName(String logger)
logger
- the logger's namevoid setLoggerLevel(String logger, String level)
logger
- the name of the loggerlevel
- the name of the new logging level, or nullIllegalArgumentException
- if the level is not
recognized, or if the logger does not existSecurityException
- if access is denied;
see Logger.setLevel(Level)