Trying to log all kinds of events.
Output log events as well.