本頁面中的部分或全部資訊可能不適用於 Trusted Cloud by S3NS。
在 Cloud Code for VS Code 中查看 Cloud Run 記錄
Cloud Code 記錄檢視器提供搜尋及篩選記錄檔的工具。
如要查看 Cloud Run 服務的記錄,請按照下列步驟操作:
- 如要開啟記錄檢視器,請開啟指令面板 (按下
Ctrl
/Cmd
+Shift
+P
鍵,或依序點選「View」 >「Command Palette」),然後執行「Cloud Code: View Logs」。
- 從「Log Type」清單中選取「Cloud Run Logs」。
- 從「Service」清單中選取 Cloud Run 服務。
- 如要查看特定修訂版本的記錄,請使用「修訂版本」清單選取修訂版本。
- 如要縮小搜尋結果範圍,請按一下「搜尋記錄」,然後輸入搜尋字詞。這項搜尋包含命名空間、部署、Pod、容器和時間。如果叢集已啟用 Cloud Logging,您也可以依嚴重性等級進行篩選。
查看特定資源的記錄
如要查看特定資源的記錄,請按照下列步驟操作:
- 按一下
「Cloud Code」,然後展開「Cloud Run」探索工具。
- 在資源上按一下滑鼠右鍵,然後點選「查看記錄檔」。
查看串流記錄
如要讓記錄檢視器在記錄檔產生時顯示更新的記錄檔,請在記錄檢視器中開啟「串流」滑桿。
取得支援
如要提供意見回饋,請前往
GitHub 回報問題,或在
Stack Overflow 上提問。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-08-11 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-08-11 (世界標準時間)。"],[[["The Cloud Code Log Viewer allows users to search and filter logs for specific information."],["Logs from a Cloud Run service can be accessed through the command palette by selecting 'Cloud Code: View Logs' and then specifying the Cloud Run service and revision."],["Users can refine their log searches by using the 'Search Logs' function and entering specific terms, including namespace, deployment, pod, container, and time."],["Logs for a specific resource can be accessed directly by right-clicking the resource within the Cloud Run explorer and selecting 'View logs'."],["The Log Viewer can display updated logs in real-time when the 'Streaming' slider is turned on."]]],[]]