View Cloud Run logs in Cloud Code for VS CodeStay organized with collectionsSave and categorize content based on your preferences.
The Cloud Code Log Viewer provides tools for searching and
filtering logs.
To view logs from a Cloud Run service, follow these steps:
To open the Log Viewer, open the command palette (pressCtrl/Cmd+Shift+Por clickView>Command Palette) and then
runCloud Code: View Logs.
SelectCloud Run Logsfrom theLog Typelist.
Select a Cloud Run service from theServicelist.
To view the logs from a particular revision, select a revision using theRevisionlist.
To refine your search results, clickSearch Logsand then type
search terms. This search includes the namespace, deployment, pod, container,
and time. For clusters with Cloud Logging enabled, you can also filter
by severity level.
Viewing logs for a specific resource
To view the logs for a specific resource, follow these steps:
ClickCloud Codeand then expand theCloud Runexplorer.
Right-click a resource and then clickView logs.
Viewing streaming logs
To have the Log Viewer display updated logs as the logs are generated, in
the Log Viewer, turn theStreamingslider on.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-12-15 UTC."],[],[]]