# Logs (/en/docs/deployment/after-launch/logs)

Find logs for the failing part of your live app.

**Give your agent this prompt:**

```text interactive=true
Diagnose <symptom> on <host> at <incident time> or for <request ID> using sanitized logs.
Follow https://coremvp.com/en/docs/deployment/after-launch/logs.md and its prerequisites.
Match an entry to the request and deployment, or report whether logs are empty, expired or disabled; do not expose secrets or customer data.
Report what changed, the check results and anything you could not run.
```

| What failed                         | Where to look                                                                                                     |
| ----------------------------------- | ----------------------------------------------------------------------------------------------------------------- |
| A deploy after a merge              | The failing check on the merged commit in GitHub; **Details** opens the Supabase or host log                      |
| A page or API request               | Your host's runtime logs (below)                                                                                  |
| Sign-in or sign-up                  | Supabase **Logs → Auth**                                                                                          |
| A database query                    | Supabase **Logs → Postgres**                                                                                      |
| A payment that did not grant access | Stripe **Workbench → Webhooks**, or Polar **Settings → Webhooks**: the deliveries to your URL and their responses |
| An email that did not arrive        | Resend **Emails**, then Supabase **Logs → Auth** for Auth email                                                   |

## Host logs

**Vercel:**

Sign in to the Vercel CLI with access to the deployment’s account or team. Identify the incident deployment in **Deployments** and replace `<deployment-url>` with its immutable deployment URL or ID, not the live custom domain. Set the time window to include the incident:

```bash interactive=true
bunx vercel logs --deployment <deployment-url> --since 1h
```

Build logs are on each deployment in **Deployments**. Runtime logs are kept for
1 hour on Hobby and 1 day on Pro
([Vercel's log limits](https://vercel.com/docs/logs/runtime)), so look soon
after a failure. Adjust `--since` and `--until` to the incident time; the default window is 30 minutes. An empty search alone does not prove logs expired.

**Cloudflare:**

Open **Workers & Pages**, select the Worker, then open **Observability**
([Cloudflare's Workers Logs](https://developers.cloudflare.com/workers/observability/logs/workers-logs/)). Check whether Workers Logs were enabled for the relevant deployment; disabled observability or retention can explain missing history.

Never paste a log that contains a secret, token or customer email into a public
place. To ask for help, see [Get support](/en/docs/support).
