Writerpublic 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 | Description |
|---|---|
ConsoleWriter(java.util.Map<java.lang.String,java.lang.String> properties) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
Closes the writer.
|
void |
flush() |
Outputs buffered log entries immediately.
|
java.util.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 ConsoleWriter(java.util.Map<java.lang.String,java.lang.String> properties)
properties - Configuration for writerpublic java.util.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 © 2019. All rights reserved.