Prompt Buddy logoPrompt Buddy

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.

Import to Prompt Buddy

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

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/workers-examples-debugging-logs-workflow-guide.mdA 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.textA 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.textA 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.textA 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.textA 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

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. 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