View Cloud Run logs in Cloud Code for VS Code

The Cloud Code Log Viewer provides tools for searching and filtering logs.

To view logs from a Cloud Run service, follow these steps:

  1. To open the Log Viewer, open the command palette (press Ctrl / Cmd + Shift + P or click View> Command Palette) and then run Cloud Code: View Logs.
  2. Select Cloud Run Logsfrom the Log Typelist.
  3. Select a Cloud Run service from the Servicelist.
  4. To view the logs from a particular revision, select a revision using the Revisionlist.
  5. To refine your search results, click Search 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:

  1. Click Cloud Codeand then expand the Cloud Runexplorer.
  2. Right-click a resource and then click View logs.

Viewing streaming logs

To have the Log Viewer display updated logs as the logs are generated, in the Log Viewer, turn the Streamingslider on.

Get Support

To send feedback, report issues on GitHub , or ask a question on Stack Overflow .
Design a Mobile Site
View Site in Mobile | Classic
Share by: