इस एपिसोड में, हम Google Cloud Logging के लिए कुछ कस्टम डेटा लॉग करते हैं. हम Python के एक उदाहरण पर काम करते हैं, जो अनुरोध और जवाब के डेटा और कस्टम लॉग में सफलता की स्थिति और बीता हुआ समय जैसे कुछ मेटाडेटा निकालने के लिए, कस्टम gRPC इंटरसेप्टर का इस्तेमाल करता है. इसके बाद, हम Google Cloud Logging एपीआई का इस्तेमाल करके, उन लॉग को क्लाउड में भेजते हैं.
Google Cloud को क्लाइंट लॉग भेजना
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-08-21 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-08-21 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eThis episode demonstrates how to log custom data to Google Cloud Logging using Python.\u003c/p\u003e\n"],["\u003cp\u003eThe example uses a gRPC interceptor to capture request/response data, success status, and elapsed time for logging.\u003c/p\u003e\n"],["\u003cp\u003eCustom logs are generated and sent to Google Cloud using the Google Cloud Logging API.\u003c/p\u003e\n"]]],[],null,["# Sending Client Logs to Google Cloud\n\nIn 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.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e"]]