Skip to content

@adrianhall/cloudflare-toolkit


@adrianhall/cloudflare-toolkit / index / ConsoleTransportOptions

Interface: ConsoleTransportOptions

Defined in: src/lib/logging/types.ts:159

Options for createConsoleTransport.

Properties

colors?

readonly optional colors?: boolean

Defined in: src/lib/logging/types.ts:164

Whether to emit ANSI color codes in the output. Defaults to true. Set to false for CI environments or when piping output to a file.


timestamp?

readonly optional timestamp?: false | "time" | "iso"

Defined in: src/lib/logging/types.ts:172

Controls the timestamp prefix on each line.

  • "time" — concise HH:MM:SS derived from record.time (default).
  • "iso" — full ISO 8601 string from record.time.
  • false — no timestamp.