fix incorrect constructor reference semantics
initialize log level before writing to log
check event type before static_cast