How to View Logs in App Platform

You can view application, build, and deploy logs in App Platform both in the control panel and from the command line.

View Logs from the Control Panel

To view app component logs, go to https://cloud.digitalocean.com/apps and click on your app. Click on the Logs tab, then click on a component to view its logs. The logs will be updated in real-time while the component is running.

Logs screen

To view build and deploy logs, go to https://cloud.digitalocean.com/apps, click on your app, and click on the Deployments tab. Click on any event in the deployment history to view all logs that were generated at build and deploy time.

View Logs on the Command Line

To view logs by using the command line, install doctl, then use the doctl apps logs command. You can set type to build, deploy, or run to view the logs for those events.

doctl apps logs <app id> <deployment id> <component name> --type <type>

You can retrieve the app ID or deployment ID with doctl apps list and doctl apps list-deployment <app id>, respectively.

See some common troubleshooting techniques for App Platform.
Logs are captures of the standard output stream that you can inspect for information about activity related to your app.