code for http logger