add-logging · git:20261115.237aa7d · 2026-11-15 · sha256 fc0452947b7a67a3

add-logging git:20261115.237aa7dA

Immutable. This exact content never changes and is served at /api/v1/blob/fc0452947b7a67a3.

No tool to install first
claude plugin marketplace add https://markdownregistry.com/mp/a/art_z4ttcwttkzfptxxu/fc0452947b7a67a3b32571b0c1cc9d7ca7a8c14fec3ffa598d5734128fd96656.json

Then /plugin install add-logging@markdownregistry-z4ttcwttkzfptxxu in Claude Code. It installs this exact version, the one graded A here, pinned to the commit it was graded at, and leaves it there.

---
name: add-logging
description: Adds structured log lines to one flow at the points that help debugging, with levels, context fields and no sensitive data.
disable-model-invocation: true
---

Add structured logging to this flow: $ARGUMENTS

1. Find the project's logger (winston, pino, structlog, logging, slog, zap, log4j) and one well-logged file. Match its import, field names and level usage. If there is no logger, stop and ask before adding a dependency.
2. Trace the flow from entry to exit. Mark: start and end with duration, each external call, each branch that changes the outcome, retries, and every caught error.
3. Choose levels: debug for internals, info for business events, warn for recovered problems, error for failures with the cause attached.
4. Log fields, not sentences: request id, user id, order id, counts, elapsed ms. Reuse a correlation id if one exists.
5. Never log passwords, tokens, card numbers, full emails, request bodies or raw headers. Redact or log only an id.
6. No logging inside tight loops.

Show the diff plus a list of the lines added with their level. Run the tests. Ask before changing logger configuration.