public class StdoutEventWriter extends Object implements EventWriter
stdout.| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static StdoutEventWriter |
of(EventFormatter formatter)
Creates a new
stdout event writer with the provided formatter. |
void |
write(Event event)
Writes the event.
|
public static StdoutEventWriter of(EventFormatter formatter)
stdout event writer with the provided formatter.formatter - the formatter to use for formatting the eventstdout event writerpublic void write(Event event)
EventWriterwrite in interface EventWriterevent - the event to writepublic void close()
close in interface AutoCloseableCopyright © 2020 JBoss by Red Hat. All rights reserved.