Skip to content

@adrianhall/cloudflare-toolkit


@adrianhall/cloudflare-toolkit / index / BrowserTransportOptions

Interface: BrowserTransportOptions

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

Options for createBrowserTransport. levelStyles allows overriding the CSS style string applied to the level badge for any subset of levels.

Properties

levelStyles?

readonly optional levelStyles?: Partial<Record<LogLevel, string>>

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

CSS style strings applied to the level badge via %c in console calls. Provide only the levels you want to override; unspecified levels use the transport's built-in defaults.