Skip to content

LEVEL_ORDER

const LEVEL_ORDER: Readonly<Record<LogLevel, number>>

Defined in: types.ts:22

Canonical numeric ordering for level comparisons.

Used both for the logger’s own threshold check and by transports (e.g. the HTTP transport’s per-transport level filter). Anything inside the package needing to compare levels should import this rather than re-deriving it.