|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface LoggingMXBean
The management interface for the logging sub-system.
ObjectName =
java.util.logging:type=Logging
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
String getLoggerLevel(String loggerName)
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.Level.getName()List<String> getLoggerNames()
Gets a list of all currently registered logger's names. This is performed
using the LogManager.getLoggerNames().
String getParentLoggerName(String loggerName)
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.
void setLoggerLevel(String loggerName,
String levelName)
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").Level.parse(String)
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||