src/Requester.php
public function addLogger($logger, $format = 'CLF')
    {
        if (defined('GuzzleHttp\Subscriber\Log\Formatter::'.$format)) {
            $format = constant('GuzzleHttp\Subscriber\Log\Formatter::'.$format);
        }

        $subscriber = new LogSubscriber($logger, $format);
        $this->guzzleClient->getEmitter()->attach($subscriber);
    }
public function addLogger($logger, $format = 'CLF')
    {
        if (defined('GuzzleHttp\Subscriber\Log\Formatter::'.$format)) {
            $format = constant('GuzzleHttp\Subscriber\Log\Formatter::'.$format);
        }

        $subscriber = new LogSubscriber($logger, $format);
        $this->guzzleClient->getEmitter()->attach($subscriber);
    }
public function addLogger ( $ logger , $ format = 'CLF' ) { if ( defined ( 'GuzzleHttp\Subscriber\Log\Formatter::' . $ format ) ) { $ format = constant ( 'GuzzleHttp\Subscriber\Log\Formatter::' . $ format ) ; } $ subscriber = new LogSubscriber ( $ logger , $ format ) ; $ this -> guzzleClient -> getEmitter ( ) -> attach ( $ subscriber ) ; }
Add a logger to the guzzle client.

@param Logger $logger PSR-3 Logger instance (monolog)
@param string $format Log output format

@return void
Add a logger to the guzzle client .