API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.util.logging. LogManager View Source
Author(s)
Since
1.4
Version
1.52, 03/13/07
Serial
Hierarchy
 Object
      LogManager
Implements
Subclasses
Description
public class LogManager
  There is a single global LogManager object that is used to maintain a set of shared state about Loggers and log services.
See also:   
Constructors
protected LogManager ()
  Protected constructor.
Methods
Hide/Show inherited methods
publicsynchronized boolean addLogger (Logger logger)
  Add a named logger.
public void addPropertyChangeListener (PropertyChangeListener l) throws SecurityException
  Adds an event listener to be invoked when the logging properties are re-read.
public void checkAccess () throws SecurityException
  Check that the current context is trusted to modify the logging configuration.
pack-private boolean getBooleanProperty (String name, boolean defaultValue)
pack-private Filter getFilterProperty (String name, Filter defaultValue)
pack-private Formatter getFormatterProperty (String name, Formatter defaultValue)
pack-private int getIntProperty (String name, int defaultValue)
pack-private Level getLevelProperty (String name, Level defaultValue)
publicsynchronized Logger getLogger (String name)
  Method to find a named logger.
publicsynchronized Enumeration<String> getLoggerNames ()
  Get an enumeration of known logger names.
publicstaticsynchronized LoggingMXBean getLoggingMXBean ()
  Returns LoggingMXBean for managing loggers.
publicstatic LogManager getLogManager ()
Return the global LogManager object.
public String getProperty (String name)
  Get the value of a logging property.
pack-private String getStringProperty (String name, String defaultValue)
public void readConfiguration () throws IOException SecurityException
  Reinitialize the logging properties and reread the logging configuration.
public void readConfiguration (InputStream ins) throws IOException SecurityException
  Reinitialize the logging properties and reread the logging configuration from the given stream, which should be in java.util.Properties format.
public void removePropertyChangeListener (PropertyChangeListener l) throws SecurityException
  Removes an event listener for property change events.
public void reset () throws SecurityException
  Reset the logging configuration.
Fields
Hide/Show inherited fields
publicfinalstatic String LOGGING_MXBEAN_NAME = "java.util.logging:type=Logging"
  String representation of the ObjectName for LoggingMXBean.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar