v0.43.0 — per-request logging & redaction
Logging enhancements, inspired by Fastify's logging.
- Per-request logging —
requestLogger()middleware binds a child logger with a generatedreqIdto each request, so every log line within a request correlates (Fastify'srequest.log). Logs request start/completion (method, path, status, ms) by default; options forgenReqId, reusing an incomingidHeader(distributed tracing), and disabling the auto lines.requestLog()reaches the current request's logger anywhere. - Log redaction —
new Logger({ redact: ["password", "req.headers.authorization"] })replaces matched values (top-level keys or dot paths) with"[redacted]"without mutating the logged object; inherited by child loggers.
275 tests; type-checked doc examples. See docs/logger.md.