Concrete implementation of an EventHandler
that outputs a string representation of an Event
to a file (standard output by default).
Creates a PrintEventHandler with the
- Events are written to this file. If this file is a terminal, be sure to set
the flush argument to true.
- If true, the file is flushed after each Event is written. This is useful when writing to a
terminal using standard output.
Writes a string representation of the event to the file that was specified
in the constructor. This method returns true which permits
subsequent handlers in a chain the chance to process the event.
- The Event to be processed.