このページの情報の一部またはすべては、S3NS の Trusted Cloud には適用されない場合があります。
Cloud Code for VS Code で Cloud Run のログを表示する
Cloud Code ログビューアには、ログの検索とフィルタリングのためのツールが用意されています。
Cloud Run サービスからログを表示する手順は次のとおりです。
- ログビューアを開くには、コマンド パレットを開き(
Ctrl
/Cmd
+ Shift
+ P
を押すか、[ビュー] > [コマンド パレット] をクリックします)、「Cloud Code: View Logs」を実行します。
- [Log Type] リストから [Cloud Run ログ] を選択します。
- [サービス] リストから Cloud Run サービスを選択します。
- 特定のリビジョンのログを表示するには、[リビジョン] リストを使用してリビジョンを選択します。
- 検索結果を絞り込むには、[検索ログ] をクリックして検索キーワードを入力します。この検索には、Namespace、Deployment、Pod、コンテナ、時間が含まれます。Cloud Logging が有効になっているクラスタの場合は、重大度でフィルタすることもできます。
特定のリソースのログを表示する
特定のリソースのログを表示する手順は次のとおりです。
[Cloud Code] をクリックし、[Cloud Run] エクスプローラを展開します。
- リソースを右クリックして [ログの表示] をクリックします。
ストリーミング ログの表示
ログが生成されたときにログビューアで更新されたログを表示するようにするには、ログビューアで [ストリーミング] スライダーをオンにします。
サポートを利用する
フィードバックを送信するには、
GitHub で問題を報告します。または、
Stack Overflow で質問します。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-02-17 UTC。
[[["わかりやすい","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-02-17 UTC。"],[[["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."]]],[]]