type alias LoggerSource
Since 0.2.0

Resolves the logger at the moment a background task fails.

A thunk rather than an ILogger, because the plugin context resolves logger lazily: capturing its value during register() freezes whatever was registered by then, and a logger registered imperatively afterwards would never receive a report.

Definition

() => ILogger | undefined

Usage

import { type LoggerSource } from "cloudflare-plugin/src/index.ts";