[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-09-04 (世界標準時間)。"],[[["\u003cp\u003eExtensible Service Proxy (ESP) logs request and response information to Cloud Logging when users make requests to your API.\u003c/p\u003e\n"],["\u003cp\u003eYou can find Cloud Endpoints logs in the Logs Explorer page by selecting "Produced API, SERVICE_NAME," where SERVICE_NAME is the name of your Endpoints service.\u003c/p\u003e\n"],["\u003cp\u003eEach log contains a structured JSON message that includes details such as \u003ccode\u003eurl\u003c/code\u003e, \u003ccode\u003eapi_name\u003c/code\u003e, \u003ccode\u003ehttp_method\u003c/code\u003e, \u003ccode\u003ehttp_response_code\u003c/code\u003e, and \u003ccode\u003erequest_latency_in_ms\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003elabels\u003c/code\u003e section in the log provides identifying information about the log's source, including the Google Cloud project ID, Endpoints service name, API version number, and method name.\u003c/p\u003e\n"]]],[],null,["# Endpoints logs\n\n[OpenAPI](/endpoints/docs/openapi/ref-endpoints-logs \"View this page for the Cloud Endpoints OpenAPI docs\") \\| gRPC\n\n\u003cbr /\u003e\n\nWhen users make requests to your API,\n[Extensible Service Proxy (ESP)](/endpoints/docs/grpc/glossary#extensible_service_proxy)\nuses Cloud Logging to log information\nabout the requests and responses. This page describes the information logged.\n\nTo locate Cloud Endpoints logs on the **Logs Explorer** page:\n\n1. In the Google Cloud console, go to the **Operations** \\\u003e **Logging**\n page:\n\n\n [Go to the Logs Explorer page](https://console.cloud.google.com/logs/query)\n\n \u003cbr /\u003e\n\n2. Select **Produced API, \u003cvar translate=\"no\"\u003eSERVICE_NAME\u003c/var\u003e** , where\n \u003cvar translate=\"no\"\u003eSERVICE_NAME\u003c/var\u003e is the name of the\n Endpoints service.\n\n | **Note:** You can select **Produced API** from the resource menu only if a recent log message contains the **API** resource type.\n\n \u003cbr /\u003e\n\n3. Click the log you want to investigate. The log contains a structured JSON\n message such as the following:\n\n {\n insertId: \"...\"\n jsonPayload: {...}\n resource: {\n type: \"api\"\n labels: {...}\n }\n timestamp: \"2017-05-08T15:00:02.804424422Z\"\n severity: \"INFO\"\n logName: \"...\"\n }\n\nThe `jsonPayload` object contains all the information reported by\nESP. The following table describes its fields:\n\nWhat's next\n-----------\n\n- [Monitoring your API](/endpoints/docs/grpc/monitoring-your-api)\n\n\u003c!-- --\u003e\n\n- [Tracing your API](/endpoints/docs/grpc/tracing)"]]