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:
*
with the lowercased name of a request header to add to the message*
with the lowercased name of a response header to add to the message$template : string
format(\Psr\Http\Message\RequestInterface $request, \Psr\Http\Message\ResponseInterface|null $response = null, \Throwable|null $error = null) : string
Returns a formatted message string.
\Psr\Http\Message\RequestInterface | $request | Request that was sent |
\Psr\Http\Message\ResponseInterface|null | $response | Response that was received |
\Throwable|null | $error | Exception that was received |