Class BackoffLogger
Logs backoff retries triggered from the BackoffPlugin
Format your log messages using a template that can contain template substitutions found in Guzzle\Log\MessageFormatter
.
In addition to the default template substitutions, there is also:
- retries: The number of times the request has been retried
- delay: The amount of time the request is being delayed
- Guzzle\Plugin\Backoff\BackoffLogger implements Symfony\Component\EventDispatcher\EventSubscriberInterface
public
|
#
__construct(
|
public static
|
|
public
|
|
public
|
string |
DEFAULT_FORMAT
|
#
'[{ts}] {method} {url} - {code} {phrase} - Retries: {retries}, Delay: {delay}, Time: {connect_time}, {total_time}, cURL: {curl_code} {curl_error}'
|
protected
|
$logger
Logger used to log retries |
|
protected
|
$formatter
Formatter used to format log messages |