|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.logging.Handler
java.util.logging.StreamHandler
java.util.logging.ConsoleHandler
public class ConsoleHandler
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:
Level.INFO if this property is not found or has an
invalid value;
null if
this property is not found or has an invalid value;
java.util.logging.SimpleFormatter if this property is not
found or has an invalid value;
null if
this property is not found or has an invalid value.
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 |
|---|
public ConsoleHandler()
ConsoleHandler object.
| Method Detail |
|---|
public void close()
System.err is flushed but not
closed.
close in class StreamHandlerpublic void publish(LogRecord record)
publish in class StreamHandlerrecord - the log record to be logged
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||