-
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
Unable to setup logging #751
Comments
Hi @michaelk1975, We need more information about your environment to investigate. Please provide the output generated by our complementary script: https://github.com/googleads/google-ads-php/blob/master/scripts/print_php_information.php. Alternatively, please provide with the following pieces of information:
|
Hi @PierrickVoulet , PHP version: HP 7.4.18 (cli) (built: May 3 2021 11:26:48) ( NTS ) |
Thanks for providing the additional information. I think you are experiencing the same issue as #414 so I am closing this issue. Feel free to comment here if you think it is a different issue. |
Thank you @PierrickVoulet , But grpc is installed in my case. I wonder what is missing so... |
Could you confirm that you added the line Another thing that could help is to install and configure |
Yes, extension=grpc.so is enabled. Protobuf is in composer.json and is installed: composer info | grep protobuf returns: google/protobuf v3.19.4 proto library for PHP |
I still suspect a misconfiguration. Could you execute the following to make sure your system picks a valid configuration? <?php
echo extension_loaded('grpc') ? 'yes' : 'no';
echo extension_loaded('protobuf') ? 'yes' : 'no';
?> |
Getting "no" and "no" |
It appears that you select You either need to use |
Hi Pierrick, |
Difficult to say without having access to the environments. If you have multiple PHPs installed on the machine you may want to double check that the one you execute is the one where you installed and configured the |
[DO NOT INCLUDE ANY PERSONAL OR SENSITIVE DATA - MAKE SURE TO REDACT CONTENT WHEN NECESSARY]
Your client library and Google Ads API versions:
v14.0.0
V10
Your environment:
Description of the bug:
I'm trying to enable logging:
Added the following to google_ads_php.ini:
[LOGGING]
logFilePath = my path
logLevel = “DEBUG"
Also performed 'chmod -R 777' on directory containing the log file.
But after running a request, the log file was empty.
Steps to reproduce:
Expected behavior:
Request/Response Logs:
Anything else we should know about your project / environment:
The text was updated successfully, but these errors were encountered: