Added logging to events.log