java.util.logging.LoggingMXBean |
The management interface for the logging sub-system.
ObjectName = java.util.logging:type=Logging
String | getLoggerLevel(String loggerName) | |||||
Gets the String value of the logging level of a logger. |
||||||
List<String> | getLoggerNames() | |||||
Gets a list of all currently registered logger's names. |
||||||
String | getParentLoggerName(String loggerName) | |||||
Gets the name of the parent logger of a logger. |
||||||
void | setLoggerLevel(String loggerName, String levelName) | |||||
Sets the log level of a logger. |
Gets the String value of the logging level of a logger. An empty String is returned when the logger's level is defined by its parent.
loggerName | The name of the logger lookup. |
---|
null
.Gets a list of all currently registered logger's names. This is performed using the getLoggerNames().
Gets the name of the parent logger of a logger. If the logger doesn't
exist then null
is returned. If the logger is the root
logger, then an empty String is returned.
loggerName | The name of the logger to lookup. |
---|
null
.
Sets the log level of a logger.
loggerName | The name of the logger to set the level on, which must
not be null . |
---|---|
levelName | The level to set on the logger, which may be
null . |
IllegalArgumentException | if loggerName is not a
registered logger or if levelName is not null and
an invalid value. |
---|---|
SecurityException | if a security manager exists and the caller doesn't have LoggingPermission("control"). |
Copyright 2007 Google Inc. | Build 0.9_r1-98467 - 14 Aug 2008 18:48 |