set the logging handler