public final class ConsoleWriter extends AbstractFormatPatternWriter
The error output stream will be used for log entries with the severity level warning and error. The standard output stream will used for all other log entries.
| Constructor and Description |
|---|
ConsoleWriter() |
ConsoleWriter(Map<String,String> properties) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the writer.
|
void |
flush()
Outputs buffered log entries immediately.
|
Collection<LogEntryValue> |
getRequiredLogEntryValues()
Gets all log entry values that are required for rendering a log entry by the defined format pattern.
|
void |
write(LogEntry logEntry)
Outputs a given log entry.
|
createByteArrayWriter, getCharset, getFileName, renderpublic Collection<LogEntryValue> getRequiredLogEntryValues()
AbstractFormatPatternWritergetRequiredLogEntryValues in interface WritergetRequiredLogEntryValues in class AbstractFormatPatternWriterpublic void write(LogEntry logEntry)
WriterlogEntry - Log entry to outputpublic void flush()
Writerpublic void close()
WriterCopyright © 2020. All rights reserved.