public class ConsoleOutHandler
extends java.util.logging.StreamHandler
java.util.logging.ConsoleHandler.
It writes to System.out instead of
System.err and uses the LogFormatter
to format| Constructor and Description |
|---|
ConsoleOutHandler()
Create a ConsoleOutHandler for System.out.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Override StreamHandler.close to do a flush but not
to close the output stream.
|
void |
publish(java.util.logging.LogRecord record)
Publish a LogRecord.
|
flush, isLoggable, setEncoding, setOutputStreampublic ConsoleOutHandler()
public void publish(java.util.logging.LogRecord record)
The logging request was made initially to a Logger object, which initialized the LogRecord and forwarded it here.
publish in class java.util.logging.StreamHandlerrecord - description of the log eventpublic void close()
close in class java.util.logging.StreamHandler