Data Infrastructure & Analytics
Introducing logs from the dashboard for Cloudflare Workers

Introducing logs from the dashboard for Cloudflare Workers

8/24/2021 · Ashcon Partovi

What this post added

Introduced integrated logging and exception tracking for Cloudflare Workers, accessible directly from the dashboard and via the `wrangler tail` CLI. This feature eliminates the need for manual logging setup by developers, automatically capturing `console.log` output and exceptions. The dashboard provides a viewable stream of logs and exceptions, with filtering by event status and type. The `wrangler tail` command offers advanced filtering by IP address, status, HTTP method, sampling rate, and generic search queries, with options for pretty and JSON output formats. This enhancement aims to simplify debugging and improve the understanding of Worker execution.

Read the original post ↗