Overview

Namespaces

  • Contrib
    • Bundle
      • CoverallsBundle
        • Console
        • Entity
      • CoverallsV1Bundle
        • Api
        • Collector
        • Command
        • Config
        • Entity
          • Git
    • Component
      • File
      • Log
      • System
        • Git
  • Guzzle
    • Batch
      • Exception
    • Cache
    • Common
      • Exception
    • Http
      • Curl
      • Exception
      • Message
      • QueryAggregator
    • Inflection
    • Iterator
    • Log
    • Parser
      • Cookie
      • Message
      • UriTemplate
      • Url
    • Plugin
      • Async
      • Backoff
      • Cache
      • Cookie
        • CookieJar
        • Exception
      • CurlAuth
      • ErrorResponse
        • Exception
      • History
      • Log
      • Md5
      • Mock
      • Oauth
    • Service
      • Builder
      • Command
        • Factory
        • LocationVisitor
          • Request
          • Response
      • Description
      • Exception
      • Resource
    • Stream
  • PHP
  • Psr
    • Log
  • Symfony
    • Component
      • Config
        • Definition
          • Builder
          • Exception
        • Exception
        • Loader
        • Resource
        • Util
      • Console
        • Command
        • Formatter
        • Helper
        • Input
        • Output
        • Tester
      • EventDispatcher
        • Debug
      • Finder
        • Adapter
        • Comparator
        • Exception
        • Expression
        • Iterator
        • Shell
      • Stopwatch
      • Yaml
        • Exception

Classes

  • AbstractBackoffStrategy
  • AbstractErrorCodeBackoffStrategy
  • BackoffLogger
  • BackoffPlugin
  • CallbackBackoffStrategy
  • ConstantBackoffStrategy
  • CurlBackoffStrategy
  • ExponentialBackoffStrategy
  • HttpBackoffStrategy
  • LinearBackoffStrategy
  • ReasonPhraseBackoffStrategy
  • TruncatedBackoffStrategy

Interfaces

  • BackoffStrategyInterface
  • Overview
  • Namespace
  • Class
  • Tree
  • Todo

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
Namespace: Guzzle\Plugin\Backoff
Located at Guzzle/Plugin/Backoff/BackoffLogger.php
Methods summary
public
# __construct( Guzzle\Log\LogAdapterInterface $logger, Guzzle\Log\MessageFormatter $formatter = null )

Backoff retry logger

Backoff retry logger

Parameters

$logger
Guzzle\Log\LogAdapterInterface
$logger Logger used to log the retries
$formatter
Guzzle\Log\MessageFormatter
$formatter Formatter used to format log messages
public static array
# getSubscribedEvents( )

Returns an array of event names this subscriber wants to listen to.

Returns an array of event names this subscriber wants to listen to.

Returns

array
The event names to listen to

Implementation of

Symfony\Component\EventDispatcher\EventSubscriberInterface::getSubscribedEvents()
public Guzzle\Plugin\Backoff\BackoffLogger
# setTemplate( string $template )

Set the template to use for logging

Set the template to use for logging

Parameters

$template
string
$template Log message template

Returns

Guzzle\Plugin\Backoff\BackoffLogger
public
# onRequestRetry( Guzzle\Common\Event $event )

Called when a request is being retried

Called when a request is being retried

Parameters

$event
Guzzle\Common\Event
$event Event emitted
Constants summary
string DEFAULT_FORMAT '[{ts}] {method} {url} - {code} {phrase} - Retries: {retries}, Delay: {delay}, Time: {connect_time}, {total_time}, cURL: {curl_code} {curl_error}'
#

Default log message template

Default log message template

Properties summary
protected Guzzle\Log\LogAdapterInterface $logger
#

Logger used to log retries

Logger used to log retries

protected Guzzle\Log\MessageFormatter $formatter
#

Formatter used to format log messages

Formatter used to format log messages

php-coveralls API documentation generated by ApiGen 2.8.0