Name

LoggingMXBean

Synopsis

This interface defines the API for the javax.management “management bean” for the logging system. Obtain an instance with the static method LogManager.getLoggingMXBean( ). The methods of this class allow the monitoring of all registered loggers and their logging level and allow management to change the logging level of any named logger.

public interface LoggingMXBean {
// Public Instance Methods
     String getLoggerLevel(String loggerName);  
     java.util.List<String> getLoggerNames( );  
     String getParentLoggerName(String loggerName);  
     void setLoggerLevel(String loggerName, String levelName);  
}

Returned By

LogManager.getLoggingMXBean( )

Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.