java.util.logging
Class LogManager.RootLogger

java.lang.Object
  extended byjava.util.logging.Logger
      extended byjava.util.logging.LogManager.RootLogger
Enclosing class:
LogManager

private class LogManager.RootLogger
extends Logger


Field Summary
 
Fields inherited from class java.util.logging.Logger
global
 
Constructor Summary
private LogManager.RootLogger()
           
 
Method Summary
 void addHandler(Handler h)
          Add a log Handler to receive logging messages.
 Handler[] getHandlers()
          Get the Handlers associated with this logger.
 void log(LogRecord record)
          Log a LogRecord.
 void removeHandler(Handler h)
          Remove a log Handler.
 
Methods inherited from class java.util.logging.Logger
config, entering, entering, entering, exiting, exiting, fine, finer, finest, getAnonymousLogger, getAnonymousLogger, getFilter, getLevel, getLogger, getLogger, getName, getParent, getResourceBundle, getResourceBundleName, getUseParentHandlers, info, isLoggable, log, log, log, log, logp, logp, logp, logp, logrb, logrb, logrb, logrb, setFilter, setLevel, setParent, setUseParentHandlers, severe, throwing, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogManager.RootLogger

private LogManager.RootLogger()
Method Detail

log

public void log(LogRecord record)
Description copied from class: Logger
Log a LogRecord.

All the other logging methods in this class call through this method to actually perform any logging. Subclasses can override this single method to capture all log activity.

Overrides:
log in class Logger
Parameters:
record - the LogRecord to be published

addHandler

public void addHandler(Handler h)
Description copied from class: Logger
Add a log Handler to receive logging messages.

By default, Loggers also send their output to their parent logger. Typically the root Logger is configured with a set of Handlers that essentially act as default handlers for all loggers.

Overrides:
addHandler in class Logger
Parameters:
h - a logging Handler

removeHandler

public void removeHandler(Handler h)
Description copied from class: Logger
Remove a log Handler.

Returns silently if the given Handler is not found.

Overrides:
removeHandler in class Logger
Parameters:
h - a logging Handler

getHandlers

public Handler[] getHandlers()
Description copied from class: Logger
Get the Handlers associated with this logger.

Overrides:
getHandlers in class Logger
Returns:
an array of all registered Handlers