Server Logs

Access real-time logs of your deployed Nuxt application.

NuxtHub Admin

When you have a successful deployment, you can access to the logs of the deployment in the NuxtHub Admin.

Logs are available under the Server > Logs section of your project page. You can also access to the logs of each successful deployment in the Deployments section.

NuxtHub Admin Server Logs

NuxtHub CLI

Using the NuxtHub CLI, you can access to the logs of both production and preview deployments.

By default, the CLI will detect based on the current branch the canonical deployment of your project and stream the logs of that deployment in the CLI.

Terminal
npx nuxthub logs
NuxtHub CLI Server Logs

Production environment

To access the logs of the production environment, you can use the --production flag.

Terminal
npx nuxthub logs --production

Preview environment

In preview environment, NuxtHub will stream the logs of the latest successful deployment in the CLI.

Terminal
npx nuxthub logs --preview

Cloudflare Dashboard

Worker project types can enable Worker Logs and view the Workers Observability tab dashboard in Cloudflare. Learn more on the Cloudflare documentation.

Observability Overview

Go to the Workers Observability tab in the Cloudflare Dashboard

Enable Worker Logs

Enable Worker Logs within hub.bindings.observability.logs in your nuxt.config.ts.

observability
string

Observability settings

logs
boolean | object

Enable Worker Logs with default configuration.

Defaults to head_sampling_rate: 1 and invocation_logs: true

logs
boolean | object

Enable Worker Logs with custom configuration.