add logging handler