In this episode, we log some custom data to Google Cloud Logging. We walk through a Python example which uses a custom gRPC interceptor to extract request and response data, as well as some metadata like success status and elapsed time, into custom logs. We then send those logs to the cloud using the Google Cloud Logging API.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-09-29 UTC.
[null,null,["Last updated 2022-09-29 UTC."],[[["This episode demonstrates how to log custom data to Google Cloud Logging using Python."],["The example uses a gRPC interceptor to capture request/response data, success status, and elapsed time for logging."],["Custom logs are generated and sent to Google Cloud using the Google Cloud Logging API."]]],[]]