在 Cloud Code for VS Code 中查看 Cloud Run 日志
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
Cloud Code 日志查看器提供了用于搜索和过滤日志的工具。
如需查看 Cloud Run 服务的日志,请按照以下步骤操作:
- 如需打开日志查看器,请打开命令面板(按
Ctrl
/Cmd
+Shift
+P
或点击视图 > 命令面板),然后运行 Cloud Code: View Logs。
- 从日志类型列表中选择 Cloud Run 日志 (Cloud Run Logs)。
- 从服务列表中选择一项 Cloud Run 服务。
- 如需查看特定修订版本的日志,请使用修订版本列表选择相应修订版本。
- 如需优化搜索结果,请点击搜索日志,然后输入搜索字词。此搜索包括命名空间、部署、Pod、容器和时间。如果集群启用了 Cloud Logging,您还可以按严重级别进行过滤。
查看针对特定资源的日志
如需查看特定资源的日志,请按照以下步骤操作:
- 点击 Cloud Code,然后展开 Cloud Run 资源管理器。
- 右键点击相应资源,然后点击查看日志。
查看流式传输日志
如需让日志查看器在生成日志时显示更新后的日志,请在日志查看器中开启流式传输滑块。
获取帮助
如需发送反馈,请在
GitHub 上报告问题,或者在
Stack Overflow 上提问。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-02-23。
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻译问题"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"易于理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"解决了我的问题"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]