Adds logging to http handler