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.
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/d21cbef1-0541-4a85-9e24-037f9169d6ff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.