and log the event