Blog

Posts tagged “Logging”

ApiTraffic header: Strapi monitoring and logging, with illustrative Strapi request log lines showing a slow article read, 401 and 429 responses on /api/auth/local, and a 500 from an oversized page request.
Monitoring

Strapi monitoring and logging: API request logs, performance and security for Strapi 5

Strapi 5 hides debug logs by default and only rate limits its auth routes. This guide adds a request-log middleware, finds slow populate queries and covers abuse on public content APIs.

Jason Fill November 13, 2026 10 min read
AdonisJS monitoring and logging: three JSON request log lines from an AdonisJS 7 request logger middleware with request_id, route /api/v1/orders/:id and statuses 200, 500 and a 404 for /wp-login.php (illustrative)
Monitoring

AdonisJS monitoring and logging: the built-in logger, request logs and APM

AdonisJS ships a Pino logger and health checks but logs no requests and sends raw error messages on a 500. How to add request logs by route, metrics, OpenTelemetry tracing and a safer exception handler, tested on AdonisJS 7.

Jason Fill November 13, 2026 10 min read
hapi monitoring and logging: a hapi-pino log line with a redacted password, per-route metric counts for /v1/orders/{orderId} and /{p*}, and an OpenTelemetry route span, from a test run on hapi 21.4.13.
Monitoring

hapi monitoring and logging: hapi-pino, request lifecycle events and APM

hapi 21 gives you a hook for every layer of monitoring. Set up hapi-pino with redaction, per-route Prometheus metrics, Boom error logging and OpenTelemetry traces, with code we ran and the output it printed.

Jason Fill November 13, 2026 11 min read
Koa monitoring and logging header: a request log with route patterns and 200, 500 and 403 statuses, a prom-client duration counter for /v1/orders/:id, and an OpenTelemetry span named GET /v1/orders/:id, output from the article's samples on Koa 2.16.4 and 3.3.0.
Monitoring

Koa monitoring and logging: request logs, metrics and APM for Koa 2 and 3

A Koa timing middleware that only uses try/finally logs every crash as a 404. How to set up Koa logging with pino, per-route metrics with prom-client, error reporting and OpenTelemetry traces, tested on Koa 2 and 3.

Jason Fill November 13, 2026 11 min read
Fastify logging guide header: 'Get more from Fastify's built-in pino logger' beside an illustrative JSON log line with reqId, route /orders/:id, authorization [redacted], statusCode 200
Logging

Fastify logging: getting the most from the built-in pino logger

Fastify logs every request out of the box, but the default skips routes, user agents and bodies, and Fastify 4 trusts client request ids. A tested production config for Fastify 4 and 5.

Jason Fill November 13, 2026 11 min read
Header: 'Request logs that include the 403s and 404s.' beside two illustrative log panels: a NestJS logging interceptor that logged 1 of 4 requests, and nestjs-pino middleware that logged all 4 (200, guard 403, unmatched 404, 500).
Logging

NestJS logging: the built-in Logger, nestjs-pino and request logs that include rejected requests

Nest's built-in Logger prints no request logs, and logging interceptors never see a guard's 403 or an unmatched 404. This guide sets up nestjs-pino with request IDs, redaction and route patterns, tested on NestJS 11 and 12.

Jason Fill November 13, 2026 12 min read
Express logging in production: three JSON log lines from pino-http with request ID, route pattern /v1/orders/:orderId, a redacted password on a 401 and a 500 on the refund route (illustrative)
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.

Jason Fill November 13, 2026 11 min read
Node.js API logging: 'What to log for every API request' beside illustrative JSON log lines with route /orders/:id, status 200, responseTime, reqId and userId, a 401 on /login with the password redacted, and an outbound call sharing the same request ID.
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.

Jason Fill November 13, 2026 19 min read
ApiTraffic card: 'A model API key leaked. The first hour.' with a timeline: 00:00 revoke at the provider, 00:10 compare provider usage with your own log, 00:30 new key and deploy, 01:00 rotate every secret nearby. Source: Wiz Research, Oct 30 2026.
Security

A model API key leaked. The first hour, for a Node team

In October, stolen Amazon Bedrock credentials made about 2.5 million API calls before anyone stopped them. A first-hour runbook for a small Node team when a model provider key leaks: revoke, scope the damage from your own logs, then rotate the right way.

Jason Fill November 12, 2026 7 min read
Header: 'Your auth check passed. Now prove what the agent did.' beside an illustrative request log of one agent run, including a duplicate refund and a denied DELETE.
Security

Your auth check passed. Now prove what the agent did.

An agent calls your API with a valid token, the scopes allow it, and the write lands with a clean 201. Nobody asked for it. Here's how to fix authorization for agents first, then build an audit trail that shows exactly what the agent did.

Jason Fill November 12, 2026 7 min read
Header: 'Observability for a 5-person Node team' with four cards: Errors (what threw, in which release), APM (what's slow, and why), OpenTelemetry (instrument once, send anywhere), Request log (who called, and what they sent).
Monitoring

Observability for a 5-person Node team: what each option actually gives you

When a customer says the export failed again, how long until you see the exact request? For most small Node teams the answer is spread across three tools. Here's what each option is built for, the gaps that bite, and a setup you can copy.

Jason Fill November 10, 2026 6 min read
Illustrative request log for user u_118: POST /orders 201, the payment step skipped, then POST /orders/8812/confirm 200, flagged reason=step_skipped missing=payment. Headline: Every request got a 200. Nobody paid.
Security

API business logic abuse: requests that are valid but wrong

Akamai says 61% of API attacks in 2025 involved unauthorized workflows, double the year before. Four examples for a small SaaS, how to map the expected order of calls, and Express code to catch the ones that skip a step.

Jason Fill November 9, 2026 5 min read