hook up the logging