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 formatConstructor | Description |
---|---|
ConsoleOutHandler() |
Create a ConsoleOutHandler for System.out.
|
Modifier and Type | Method | 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.
|
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, reportError, setErrorManager, setFilter, setFormatter, setLevel
public 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.StreamHandler
record
- description of the log eventpublic void close()
close
in class java.util.logging.StreamHandler