I am downloading adwords api report using php adwords library.
I wants to keep soap api request log in file.
I am trying bellow code.
use Monolog\Logger;
use Monolog\Handler\StreamHandler;
use Monolog\Formatter\LineFormatter;
$log = new Logger('channel_name');
$stream = new StreamHandler(__DIR__.'/myRequest.log', Logger::INFO);
$stream->setFormatter(new LineFormatter(null, null, false, true));
$log->pushHandler($stream);
$session = (new AdWordsSessionBuilder())
->withDeveloperToken(DEVELOPERTOKEN)
->withOAuth2Credential($oAuth2Credential)
->withClientCustomerId($client_id)
->withSoapSettings($SoapSettingsBuilder)
->withReportSettings($reportSettings)
->withSoapLogger(new Logger('channel_name'))
->build();
but its not creating any log files or request.
Could you please help to log my all soap request using php lib??
If you provide me any example to log request than it would be great.
Thanks.