Log the event