Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Halaman ini menjelaskan cara melihat log streaming aplikasi dan memeriksa status resource dari dalam Cloud Code.
Setelah aplikasi Anda dibuat dan berjalan dalam mode reguler atau pengembangan, Anda dapat memantau streaming log dari aplikasi Anda dari dalam IDE. Anda juga dapat melihat log dari resource tertentu (pod, deployment, dll.)
dengan membuka Kubernetes Explorer.
Melihat status tugas dan resource
Saat memulai sesi pengembangan atau proses debug, Anda dapat memantau streaming log dari aplikasi Anda dari dalam IDE Anda.
Dari Kubernetes Explorer, Anda dapat memeriksa status deployment dengan cara berikut:
Status pod, deployment, dan node: Resource Kubernetes ini memiliki tanda status berwarna di samping labelnya; merah untuk status gagal, kuning untuk status memulai/menghentikan/peringatan, dan hijau untuk status yang diinginkan dan berfungsi dengan baik.
Deskripsi resource yang di-deploy: Anda dapat menjalankan kubectl describe pada resource yang di-deploy untuk menampilkan detailnya dengan mengklik kanan dan memilih Describe.
Melihat log untuk resource tertentu
Untuk melihat log dari resource tertentu, ikuti langkah-langkah berikut:
Buka Kubernetes Explorer. Anda dapat mengaksesnya dari panel samping di sebelah kanan atau menggunakan Tools > Cloud Code > Kubernetes > View Cluster Explorer.
Pilih resource yang ingin Anda lihat lognya, seperti pod, deployment, atau layanan.
Klik kanan resource, lalu pilih Stream Logs. Atau, Anda dapat
mengalirkan log untuk setiap container yang berjalan di pod.
Tindakan ini akan menghasilkan log ke Konsol Kubernetes Explorer.
Untuk mengirimkan masukan atau melaporkan masalah di IDE IntelliJ, buka
Tools > Cloud Code > Help / About > Submit
feedback or report an issue untuk melaporkan masalah di GitHub.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 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)."]]