backend-structured-logging
Installation
SKILL.md
Backend Structured Logging
Purpose
Design structured JSON logging with consistent schema, context propagation, and sampling.
Agent Protocol
Trigger
Exact user phrases: "structured logging", "JSON logging", "log format", "logging best practice", "log levels", "distributed tracing", "log correlation", "structured log", "logging library", "log aggregation", "log output", "log schema", "correlation ID".
Input Context
Before activating, verify:
- Logging framework (Winston/Pino/Serilog/Log4j/logrus/zerolog)
- Log aggregation system (Elasticsearch/Loki/CloudWatch/Datadog)
- Compliance requirements (audit log retention, PII handling, access logs)
Output Artifact
Logging schema and configuration as formatted text.