DEFAULT_FORMAT
DEFAULT_FORMAT = '[{ts}] {method} {url} - {code} {phrase} - Retries: {retries}, Delay: {delay}, Time: {connect_time}, {total_time}, cURL: {curl_code} {curl_error}' : string
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:
$logger : \Guzzle\Log\LogAdapterInterface
$formatter : \Guzzle\Log\MessageFormatter
__construct(\Guzzle\Log\LogAdapterInterface $logger, \Guzzle\Log\MessageFormatter $formatter = null)
\Guzzle\Log\LogAdapterInterface | $logger | Logger used to log the retries |
\Guzzle\Log\MessageFormatter | $formatter | Formatter used to format log messages |
getSubscribedEvents() : array
Returns an array of event names this subscriber wants to listen to.
The array keys are event names and the value can be:
For instance:
The event names to listen to
onRequestRetry(\Guzzle\Common\Event $event)
Called when a request is being retried
\Guzzle\Common\Event | $event | Event emitted |