| java.util.logging.LoggingMXBean
LoggingMXBean | public interface LoggingMXBean (Code) | | The management interface for the logging sub-system.
ObjectName =
LogManager.LOGGING_MXBEAN_NAME java.util.logging:type=Logging
since: 1.5 |
getLoggerLevel | String getLoggerLevel(String loggerName)(Code) | | 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.
Parameters: loggerName - The name of the logger lookup. A String if the logger was found, otherwise null . See Also: Level.getName |
getParentLoggerName | String getParentLoggerName(String loggerName)(Code) | | 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.
Parameters: loggerName - The name of the logger to lookup. A String if the logger was found, otherwise null . |
setLoggerLevel | void setLoggerLevel(String loggerName, String levelName)(Code) | | Sets the log level of a logger.
Parameters: loggerName - The name of the logger to set the level on, which must not benull . Parameters: levelName - The level to set on the logger, which may be null . throws: IllegalArgumentException - if loggerName is not a registered logger or iflevelName is not null and an invalid value. throws: SecurityException - if a security manager exists and the caller doesn't haveLoggingPermission("control"). See Also: Level.parse(String) |
|
|