[[["易于理解","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\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)."]]