AgenticPay backend uses Pino for JSON structured logs with correlation IDs.
| Field | Source |
|---|---|
traceId |
X-Trace-Id header or generated UUID |
requestId |
x-request-id header or generated UUID |
module |
Per-module child loggers (webhooks, prisma, …) |
LOG_LEVEL=info
LOG_LEVELS=webhooks:debug,prisma:warndocker compose up -d loki grafana- Grafana: http://localhost:3002 (admin / admin)
- Query:
{service="agenticpay-backend"}in Explore → Loki
Ship production logs with Promtail or your cloud log agent targeting Loki.
Emails, API keys, Bearer tokens, and card-like numbers are redacted in log formatters. Sensitive object keys (password, secret, token, …) are censored.