アプリケーションが通常モードまたは開発モードでビルドされ、実行されると、アプリケーションからのログ ストリーミングを IDE の内部からモニタリングできるようになります。 Kubernetes Explorer に移動して、特定のリソース(Pod、Deployment など)のログを表示することもできます。
タスクとリソースのステータスを表示する
開発、デバッグのセッションを開始すると、アプリケーションからストリーミングされるログを IDE 内からモニタリングできるようになります。
Kubernetes Explorer から、次の方法で Deployment のステータスを確認できます。
[[["わかりやすい","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 UTC。"],[[["\u003cp\u003eMonitor application logs directly from your IDE after building and running in either regular or development mode.\u003c/p\u003e\n"],["\u003cp\u003eAccess the Kubernetes Explorer to view the status of pods, deployments, and nodes, with color-coded indicators for resource health.\u003c/p\u003e\n"],["\u003cp\u003eUtilize the \u003ccode\u003ekubectl describe\u003c/code\u003e command by right-clicking on a deployed resource within the Kubernetes Explorer to view detailed information.\u003c/p\u003e\n"],["\u003cp\u003eStream logs from a specific resource, such as a pod or deployment, by right-clicking the resource in the Kubernetes Explorer and selecting "Stream Logs".\u003c/p\u003e\n"]]],[],null,["# View Kubernetes logs in Cloud Code for IntelliJ\n\nThis page describes how to view the streaming logs of your application and to\ncheck the status of resources from within Cloud Code.\nAfter your application builds and runs in either regular or development mode, you'll be able to monitor logs streaming from your application from within your IDE. You can also view logs from a specific resource (a pod, a deployment, etc.) by navigating to the Kubernetes Explorer.\n\n\u003cbr /\u003e\n\nView the status of tasks and resources\n--------------------------------------\n\nWhen you start a development or debugging session, you'll be able to monitor logs streaming from your application from [within your IDE](/code/docs/intellij/k8s-overview#view_logs).\n\n\u003cbr /\u003e\n\nFrom the Kubernetes Explorer, you can check the status of your\ndeployment in the following ways:\n\n- **Pod, deployment and node statuses**: These Kubernetes resources have colored\n status marks next to their labels; red for failed state, yellow for\n starting/terminating/warning, and green for healthy, desired state.\n\n- **Deployed resource descriptions** : You can run a `kubectl describe` on your\n deployed resources to display its details by right-clicking and choosing\n **Describe**.\n\nView logs for a specific resource\n---------------------------------\n\nTo view logs from a specific resource, follow these steps:\n\n\u003cbr /\u003e\n\n1. Navigate to the Kubernetes Explorer. It can be\n accessed either from the side panel on the right or\n using **Tools** \\\u003e **Cloud Code** \\\u003e **Kubernetes** \\\u003e **View Cluster Explorer**.\n\n2. Select the resource you'd like to see logs from, such as a pod, a deployment,\n or a service.\n\n3. Right-click the resource and select **Stream Logs**. Alternatively, you can\n stream logs for individual containers running in pods.\n\n This outputs logs to the Kubernetes Explorer Console.\n\nWhat's next\n-----------\n\n- [Debug a Kubernetes application in Cloud Code](/code/docs/intellij/debug).\n- Explore the Kubernetes documentation on [troubleshooting containerized applications](https://kubernetes.io/docs/tasks/debug/debug-application/).\n\nGet support\n-----------\n\nTo submit feedback or report an issue in your IntelliJ IDE, go to **Tools** \\\u003e **Cloud Code** \\\u003e **Help / About** \\\u003e **Submit\nfeedback or report an issue** to report an issue on [GitHub](https://github.com/GoogleCloudPlatform/cloud-code-intellij/issues)."]]