Use the event dispatcher to log events