cloudflare · Cloudflare Workers Docs
Workers Debugging logs
Implementation pattern for capturing error details and sending them to an external logging service within a Cloudflare Worker response.
Derived skill
Files assembled from official documentation
Viewing SKILL.md
Workers Debugging logs
Implementation pattern for capturing error details and sending them to an external logging service within a Cloudflare Worker response.
When To Use
Use when you need to implement a mechanism to capture and transmit error context to a third-party logging provider during a Worker execution failure.
Reference Files
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/workers-examples-debugging-logs-workflow-guide.md | A guide explaining how to send debugging information in an errored response to a logging service within Cloudflare Workers. | Questions about a guide explaining how to send debugging information in an errored response to a logging service within Cloudflare Wo... |
examples/workers-examples-debugging-logs-cloudflare-workers-debugging-logs-javasc.text | A JavaScript worker script demonstrating how to intercept requests and send log data to an external HTTP endpoint. | Exact payloads, commands, or snippets shown in A JavaScript worker script demonstrating how to intercept requests and send log data to an external HTTP endpoint. |
examples/workers-examples-debugging-logs-cloudflare-workers-custom-log-service-im.text | A JavaScript implementation for a Cloudflare Worker that intercepts requests and posts log data to an external HTTP endpoint. | Exact payloads, commands, or snippets shown in A JavaScript implementation for a Cloudflare Worker that intercepts requests and posts log data to an external HTTP e... |
examples/workers-examples-debugging-logs-cloudflare-workers-python-custom-log-ser.text | A Python example demonstrating how to intercept worker requests and send log data to an external HTTP endpoint using a custom WorkerEntrypoint. | Exact payloads, commands, or snippets shown in A Python example demonstrating how to intercept worker requests and send log data to an external HTTP endpoint using... |
examples/workers-examples-debugging-logs-cloudflare-workers-hono-external-log-ser.text | A TypeScript example using the Hono framework to intercept and post worker logs to an external HTTP endpoint. | Exact payloads, commands, or snippets shown in A TypeScript example using the Hono framework to intercept and post worker logs to an external HTTP endpoint. |
What This Skill Covers
- Send debugging information in an errored response to a logging service.
- Main sections:
Tags.
Workflow
- Open the most relevant file under
docs/for the exact documented workflow and wording. - Open
schemas/files for exact structured contracts. - Open
examples/files for concrete requests, commands, snippets, and manifests. - Do not add behavior or configuration that is not present in the attached source files.
Canonical source: https://developers.cloudflare.com/workers/examples/debugging-logs
