Interface LogEventWriter
- All Known Implementing Classes:
BaseLogEventWriter, JsonlLogWriter, JsonLogWriter, MappingLogEventWriter, MarkdownLogWriter, TxtLogWriter, XmlLogWriter
public interface LogEventWriter
LogEventWriters allow the customization of how LogListeners write LogEvent data to
output streams.
Its purpose is the formatting of output data and not the modification of individual events.
- Since:
- 2.1.4
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes the writer and releases any underlying resources.voidsetPrintStream(PrintStream printStream) Sets the print stream used for output.voidWrites a log event to the underlying output.
-
Method Details
-
write
-
setPrintStream
Sets the print stream used for output.- Parameters:
printStream- the destination stream
-
close
void close()Closes the writer and releases any underlying resources.
-