Exit cleanly on a broken pipe
SimpleEventLogger: add custom output for different types

There are many event types, I've listed a few of the important ones.