Package org.wildfly.event.logger
Class StdoutEventWriter
- java.lang.Object
-
- org.wildfly.event.logger.StdoutEventWriter
-
- All Implemented Interfaces:
AutoCloseable,EventWriter
public class StdoutEventWriter extends Object implements EventWriter
An event writer which writes directly tostdout.- Author:
- James R. Perkins
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()static StdoutEventWriterof(EventFormatter formatter)Creates a newstdoutevent writer with the provided formatter.voidwrite(Event event)Writes the event.
-
-
-
Method Detail
-
of
public static StdoutEventWriter of(EventFormatter formatter)
Creates a newstdoutevent writer with the provided formatter.- Parameters:
formatter- the formatter to use for formatting the event- Returns:
- a new
stdoutevent writer
-
write
public void write(Event event)
Description copied from interface:EventWriterWrites the event.- Specified by:
writein interfaceEventWriter- Parameters:
event- the event to write
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable
-
-