Skip to content
Software capabilities

Cloudflare capability

Tail Cloudflare Worker logs

Use wrangler tail to see incoming Worker requests and errors in your terminal. Use the dashboard’s Live view when you want to inspect the same stream in a browser.

Documentation reviewed

Ways to do it

CLI

npx wrangler tail

Connect to a deployed Worker and stream request events, console output, and exceptions as they arrive.

Requirements
Wrangler authenticated to the owning Cloudflare account and the Worker selected through the project configuration or command.
Limitations
High traffic can trigger sampling. Check for the sampling warning before treating the output as a complete request record.

Example

npx wrangler tail
Read source: Cloudflare Workers real-time logs

Interface

Workers & Pages → Worker → Logs → Live

Open the selected Worker’s live log stream from the dashboard.

Requirements
Dashboard access to the Cloudflare account and a deployed Worker.
Limitations
The live stream starts when you connect. Use persisted Workers Logs for earlier requests.
Read source: Cloudflare dashboard real-time Worker logs