add function HTTPLogger that implements an http.Handler to log HTTP requests.