Blog
Posts tagged “Redaction”
Logging
Express logging in production: pino-http vs morgan, request bodies and redaction
morgan, pino-http or winston? A production Express logging setup on Express 5: one JSON line per request with request ID, route and user, bodies for failed requests only, pino redaction, and errors on the same line.
Logging
Node.js API logging: what to log for every request, and how
Most Node.js API logs can't answer "what happened to this customer's request?" This guide covers the six fields every request line needs, safe body capture that keeps streaming intact, redaction, outbound calls, and the queries to run, with code tested on Node 22 and 24.