Log methods added and host header parsing code updated