[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-09-04。"],[[["\u003cp\u003eThe Cloud Code Log Viewer allows users to search and filter logs for effective analysis.\u003c/p\u003e\n"],["\u003cp\u003eLogs from Cloud Run services can be accessed through the command palette using the "Cloud Code: View Logs" command, selecting "Cloud Run Logs," and then choosing a specific service and revision.\u003c/p\u003e\n"],["\u003cp\u003eUsers can refine log searches by typing terms in the "Search Logs" field, filtering by various criteria including namespace, deployment, pod, container, time, and severity level in enabled clusters.\u003c/p\u003e\n"],["\u003cp\u003eLogs for specific resources can be viewed by right-clicking a resource in the Cloud Run explorer and selecting "View logs".\u003c/p\u003e\n"],["\u003cp\u003eReal-time log updates can be viewed by turning on the "Streaming" slider within the Log Viewer.\u003c/p\u003e\n"]]],[],null,["# View Cloud Run logs in Cloud Code for Cloud Shell\n\nThe Cloud Code Log Viewer provides tools for searching and\nfiltering logs.\n\nTo view logs from a Cloud Run service, follow these steps:\n\n1. To open the Log Viewer, open the command palette (press `Ctrl`/`Cmd`+`Shift`+`P` or click **View** \\\u003e **Command Palette** ) and then run **Cloud Code: View Logs**.\n2. Select **Cloud Run Logs** from the **Log Type** list.\n3. Select a Cloud Run service from the **Service** list.\n4. To view the logs from a particular revision, select a revision using the **Revision** list.\n5. To refine your search results, click **Search Logs** and then type search terms. This search includes the namespace, deployment, pod, container, and time. For clusters with Cloud Logging enabled, you can also filter by severity level.\n\nViewing logs for a specific resource\n------------------------------------\n\nTo view the logs for a specific resource, follow these steps:\n\n1. Click **Cloud Code** and then expand the **Cloud Run** explorer.\n2. Right-click a resource and then click **View logs**.\n\nViewing streaming logs\n----------------------\n\nTo have the Log Viewer display updated logs as the logs are generated, in\nthe Log Viewer, turn the **Streaming** slider on."]]