Skip to content

Type Alias: LogLevel

LogLevel = typeof LOG_LEVELS[number]

Supported severities, lowest to highest: debug, info, warn, error. A call below the active threshold is discarded before any string work or sink I/O.

The threshold comes from process.env.LOG_LEVEL on every call (case-insensitive, default info when unset, empty, or unknown) so test runners and embedders can change verbosity after import without restarting the process.