Fix logging example in docs to include required StreamHandler#2605
Fix logging example in docs to include required StreamHandler#2605jnowakowski wants to merge 1 commit intogoogleapis:mainfrom
Conversation
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
The previous logging example set the log level but did not include a StreamHandler, causing no output in many environments. This fix adds a StreamHandler and formatter to ensure logs are visible in terminal/script use.
|
1 similar comment
|
The logging example in the documentation previously set the log level but did not include a handler, which can result in no output being shown in many environments (e.g., terminal, script execution).
This PR improves the example by:
This change improves developer experience, especially for those new to the library or debugging API calls.
Fixes #2604