Type Alias: LogLevel
LogLevel =
"debug"|"info"|"warn"|"error"
Defined in: src/lib/log.ts:16
Minimal structured logger (JSON lines).
The project bans console.log in committed code (CLAUDE.md); this is the single
sanctioned sink. Emits one JSON object per line so logs are machine-parseable in
any environment, honouring LOG_LEVEL (debug < info < warn < error).
Although it lives under lib/ (otherwise pure utilities), writing to stdout/stderr
is a deliberate, contained exception — every other module logs through here rather
than touching the console directly.
Callers are responsible for never passing PII (SSNs, bank/tax IDs, document bodies)
in fields; log identifiers and statuses, not sensitive content.