Build 1.0_r1(from source)

java.util.logging
Class ConsoleHandler

java.lang.Object
  extended by java.util.logging.Handler
      extended by java.util.logging.StreamHandler
          extended by java.util.logging.ConsoleHandler

public class ConsoleHandler
extends StreamHandler

A handler that writes log messages to the standard output stream System.err.

This handler reads the following properties from the log manager to initialize itself:

This class is not thread-safe.


Constructor Summary
ConsoleHandler()
          Constructs a ConsoleHandler object.
 
Method Summary
 void close()
          Closes this handler.
 void publish(LogRecord record)
          Logs a record if necessary.
 
Methods inherited from class java.util.logging.StreamHandler
close, flush, internalSetOutputStream, isLoggable, setEncoding, setOutputStream
 
Methods inherited from class java.util.logging.Handler
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, initProperties, internalSetEncoding, internalSetFormatter, printInvalidPropMessage, reportError, setErrorManager, setFilter, setFormatter, setLevel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConsoleHandler

public ConsoleHandler()
Constructs a ConsoleHandler object.

Method Detail

close

public void close()
Closes this handler. The System.err is flushed but not closed.

Overrides:
close in class StreamHandler

publish

public void publish(LogRecord record)
Logs a record if necessary. A flush operation will be done.

Overrides:
publish in class StreamHandler
Parameters:
record - the log record to be logged

Build 1.0_r1(from source)

Please submit a feedback, bug or feature