Cleaning up log events.