Overview

Namespaces

  • Guzzle
    • Batch
      • Exception
    • Cache
    • Common
      • Exception
    • Http
      • Curl
      • Exception
      • Message
        • Header
      • 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
    • Tests
      • Batch
      • Cache
      • Common
        • Cache
        • Exception
      • Http
        • Curl
        • Exception
        • Message
          • Header
      • Inflection
      • Iterator
      • Log
      • Message
      • Mock
      • Parser
        • Cookie
        • Message
      • Parsers
        • UriTemplate
      • Plugin
        • Async
        • Backoff
        • Cache
        • Cookie
          • CookieJar
        • CurlAuth
        • ErrorResponse
        • History
        • Log
        • Md5
        • Mock
        • Oauth
        • Redirect
      • Service
        • Builder
        • Command
          • LocationVisitor
            • Request
            • Response
        • Description
        • Exception
        • Mock
          • Command
            • Sub
          • Model
        • Resource
      • Stream
  • None
  • Omnipay
    • Common
      • Exception
      • Message
    • Dummy
      • Message
    • VivaPayments
      • Message
  • PHP

Classes

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

Interfaces

  • BackoffStrategyInterface
  • Overview
  • Namespace
  • Class
  • Tree

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

Parameters

$logger
Logger used to log the retries
$formatter
Formatter used to format log messages
public static
# 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
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
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}'
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

#
Omnipay Viva Payments Gateway Module API Documentation API documentation generated by ApiGen