public class JavaUtilConsoleHandler extends StreamHandler
| Constructor and Description |
|---|
JavaUtilConsoleHandler()
Create a JavaUtilConsoleHandler 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(LogRecord record)
Publish a LogRecord.
|
flush, isLoggable, setEncoding, setOutputStreamgetEncoding, getErrorManager, getFilter, getFormatter, getLevel, reportError, setErrorManager, setFilter, setFormatter, setLevelpublic JavaUtilConsoleHandler()
public void publish(LogRecord record)
The logging request was made initially to a Logger object, which initialized the LogRecord and forwarded it here.
publish in class StreamHandlerrecord - description of the log event. A null record is
silently ignored and is not publishedpublic void close()
close in class StreamHandlerCopyright © 2015–2020. All rights reserved.