log the events