Java in a Nutshell, 5th Edition [Electronic resources]

نسخه متنی -صفحه : 1191/ 854
نمايش فراداده

LoggingMXBeanjava.util.logging

Java 5.0

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( )