/** * Structured `[PREFIX] scope: message` logger, grep-friendly for `wrangler tail`. * * Convention: * [START] entering a scope (route, cron, external call) * [SUCCESS] scope returned without error * [FAIL] scope threw or returned an error result * [FINISH] scope exited without a semantic outcome (`[SUCCESS]` and * `[FAIL]` are mutually exclusive; `[FINISH]` is the umbrella * you emit in `finally` when both terminal states are noisy) * [INFO] mid-scope breadcrumbs * * All emit through `console.log` (Cloudflare Workers pipes stdout to tail). * `[FAIL]` also stashes the caller-supplied error via `console.error` for * source-map-friendly stack traces in the dashboard. */ type Extra = Record | undefined; export declare const log: { start(scope: string, message?: string, extra?: Extra): void; success(scope: string, message?: string, extra?: Extra): void; fail(scope: string, message?: string, error?: unknown, extra?: Extra): void; finish(scope: string, message?: string, extra?: Extra): void; info(scope: string, message?: string, extra?: Extra): void; }; export type Log = typeof log; export {}; //# sourceMappingURL=log.d.ts.map