Android
java.util.logging
public interface

java.util.logging.LoggingMXBean

java.util.logging.LoggingMXBean

The management interface for the logging sub-system.

ObjectName = java.util.logging:type=Logging

Summary

Public Methods

          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.

Details

Public Methods

public 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.

Parameters

loggerName The name of the logger lookup.

Returns

  • A String if the logger was found, otherwise null.

See Also

public List<String> getLoggerNames()

Gets a list of all currently registered logger's names. This is performed using the getLoggerNames().

Returns

  • A List of String instances.

public 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.

Parameters

loggerName The name of the logger to lookup.

Returns

  • A String if the logger was found, otherwise null.

public void setLoggerLevel(String loggerName, String levelName)

Sets the log level of a logger.

Parameters

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.

Throws

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").

See Also

Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:56