-
Notifications
You must be signed in to change notification settings - Fork 265
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Logging withLogger usage #818
Comments
Hi @LuisCabr - The following code works as expected on my side: use Google\Ads\GoogleAds\Lib\V11\LoggerFactory;
//...
(new GoogleAdsClientBuilder())
->fromFile()
->withOAuth2Credential($oAuth2Credential)
->withLogger((new LoggerFactory())->createLogger(
'google-ads',
'/path/to/google-ads.log',
'DEBUG'
))
->build(); Could you give it a try? |
I'm using the V10 namespace, does it have any known issue?
|
If I do the following:
And If I run my code, it outputs the following on
But no more log messages are written. |
As far as I know, no. Could you confirm the transport that you are using (gRPC or REST)? |
I'm using default option, gRPC |
I just tried again with I am using the version |
I have this one installed:
|
Could you provide the output generated by our complementary script: https://github.com/googleads/google-ads-php/blob/master/scripts/print_php_information.php. This will give us more information about your environment. |
sure!
|
Thanks. Looks like Installing and configuring the |
Thanks, gonna try it now and get back to you so you can close the issue. |
Hi again, I installed gRPC php extension and I was able to run the code perfectly without issues and get the expected logging output. You can close the issue, thanks a lot for the help! |
Hi all,
I'm trying to configure the library to output DEBUG logging when doing API calls. To do so, i tried the following:
Its not working, or I'm doing something wrong because this is not producIng any output when I execute API calls.
Thanks in advance
The text was updated successfully, but these errors were encountered: