\Google\AdsApi\CommonGuzzleLogMessageHandler

Defines how logging is done for HTTP calls made to non-SOAP ads API endpoints.

Summary

Methods
Properties
Constants
log()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

log()

log(\Psr\Log\LoggerInterface  $logger,\Google\AdsApi\Common\GuzzleLogMessageFormatter  $messageFormatter): callable

Logs requests and responses for Guzzle HTTP calls to non-SOAP ads API endpoints to the specified logger.

Parameters

\Psr\Log\LoggerInterface $logger
\Google\AdsApi\Common\GuzzleLogMessageFormatter $messageFormatter

Returns

callable —

a function that accepts the next handler