[P2] feat: add Pino structured logger with redaction and request ID middleware

↗ view on GitHub · Dshamir · 2026-05-23 · 440da990

Add structured logging via Pino with sensitive field redaction and
per-request child loggers tied to X-Request-ID headers.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Repository Dshamir/AI-Legal
Author Dshamir <dshamir@blucap.ca>
Authored
Parents 46efac39
Stats 2 files changed , +40
Part of Backend request hardening: validation, logging, error tracking, CSP

Capture this commit into my fork

Download a Markdown prompt that tells Claude how to port this exact commit into your working tree. Run it via claude -p < capture-commit-440da990.md from inside the repo you want the change in.

⬇ Download capture-commit-440da990.md