Handler wraps an HTTP handler and logs each request after it completes.
It records the response status, transmitted byte count, duration, and
hijack state. Successful 2xx responses are logged at debug level; all other
responses are logged at info level.