add support for logging http requests