CLF
CLF = "{hostname} {req_header_User-Agent} - [{date_common_log}] \"{method} {target} HTTP/{version}\" {code} {res_header_Content-Length}" : string
Apache Common Log Format.
Formats log messages using variable substitutions for requests, responses, and other transactional data.
The following variable substitutions are supported:
format(\Psr\Http\Message\RequestInterface $request, \Psr\Http\Message\ResponseInterface $response = null, \Exception $error = null) : string
Returns a formatted message string.
\Psr\Http\Message\RequestInterface | $request | Request that was sent |
\Psr\Http\Message\ResponseInterface | $response | Response that was received |
\Exception | $error | Exception that was received |
headers(\Psr\Http\Message\MessageInterface $message)
\Psr\Http\Message\MessageInterface | $message |