log the event