Adding logging to the event system.