|
| string const | CLF = '{hostname} {req_header_User-Agent} - [{date_common_log}] "{method} {target} HTTP/{version}" {code} {res_header_Content-Length}' |
| | Apache Common Log Format.
|
| |
|
const | DEBUG = ">>>>>>>>\n{request}\n<<<<<<<<\n{response}\n--------\n{error}" |
| |
|
const | SHORT = '[{ts}] "{method} {target} HTTP/{version}" {code}' |
| |
◆ __construct()
| GuzzleHttp\MessageFormatter::__construct |
( |
?string | $template = self::CLF | ) |
|
- Parameters
-
| string | $template | Log message template |
◆ format()
Returns a formatted message string.
- Parameters
-
| RequestInterface | $request | Request that was sent |
| ResponseInterface | null | $response | Response that was received |
| Throwable | null | $error | Exception that was received |
Implements GuzzleHttp\MessageFormatterInterface.
◆ CLF
| string const GuzzleHttp\MessageFormatter::CLF = '{hostname} {req_header_User-Agent} - [{date_common_log}] "{method} {target} HTTP/{version}" {code} {res_header_Content-Length}' |
The documentation for this class was generated from the following file:
- lib/guzzlehttp/guzzle/src/MessageFormatter.php