Skip to content

@adrianhall/cloudflare-toolkit


@adrianhall/cloudflare-toolkit / lib/hono / LoggerVariables

Interface: LoggerVariables

Defined in: src/lib/hono/types.ts:24

Context variables set by cloudflareLogger. Intersect this with your own Variables when typing your Hono instance so that c.get("LOGGER")/c.var.LOGGER is statically known:

ts
interface AppVariables extends LoggerVariables {
  // Custom variables go here
}

type AppContext = { Bindings: Env; Variables: AppVariables };

Properties

LOGGER

LOGGER: Logger

Defined in: src/lib/hono/types.ts:26

The request-scoped Logger set by cloudflareLogger.