You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14-3Lines changed: 14 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -814,8 +814,20 @@ If you have a conflicting package installation that cannot co-exist with our rec
814
814
815
815
See the [Packagist page for client-implementation](https://packagist.org/providers/php-http/client-implementation) for options.
816
816
817
-
Contributing
818
-
------------
817
+
### Enabling Request/Response Logging
818
+
819
+
Our client library has support for logging the request and response for debugging via PSR-3 compatible logging mechanisms. If the `debug` option is passed into the client and a PSR-3 compatible logger is set in our client's service factory, we will use the logger for debugging purposes.
820
+
821
+
```php
822
+
$client = new \Vonage\Client(new \Vonage\Client\Credentials\Basic('abcd1234', 's3cr3tk3y'), ['debug' => true]);
**ENABLING DEBUGING LOGGING HAS THE POTENTIAL FOR LOGGING SENSITIVE INFORMATION, DO NOT ENABLE IN PRODUCTION**
829
+
830
+
## Contributing
819
831
820
832
This library is actively developed, and we love to hear from you! Please feel free to [create an issue][issues] or [open a pull request][pulls] with your questions, comments, suggestions and feedback.
821
833
@@ -828,4 +840,3 @@ This library is actively developed, and we love to hear from you! Please feel fr
0 commit comments