Structured logging implementation. Defines log level strategies, implements JSON structured logging, sets up log aggregation pipelines, adds request tracing with correlation IDs, handles PII redaction, and configures log retention and rotation policies.
From godmodenpx claudepluginhub arbazkhan971/godmodegodmode//loggingReview logging for secrets exposure, PII leaks, wide-event patterns, and query-optimized observability
Structured logging implementation. Defines log level strategies, implements JSON structured logging, sets up log aggregation pipelines, adds request tracing with correlation IDs, handles PII redaction, and configures log retention and rotation policies.
/godmode:logging # Full structured logging implementation
/godmode:logging --levels # Define log level strategy
/godmode:logging --structured # Implement structured JSON logging
/godmode:logging --aggregation # Set up log aggregation (ELK, Loki, CloudWatch)
/godmode:logging --tracing # Add correlation IDs and request tracing
/godmode:logging --pii # Implement PII redaction in logs
/godmode:logging --retention # Design log retention and rotation policy
/godmode:logging --opentelemetry # Integrate with OpenTelemetry
/godmode:logging --audit # Audit existing logging for gaps
docs/logging/<service>-logging.md"logging: <service> — structured logging with <features> (<coverage>)"| Level | Production | Alerts | Example |
|---|---|---|---|
| FATAL | Always | Immediate page | Startup failure, OOM |
| ERROR | Always | Alert within 5m | API call failed, DB error |
| WARN | Always | Dashboard | Retry succeeded, slow query |
| INFO | Always | — | User signup, order created |
| DEBUG | On-demand | — | SQL query, cache hit/miss |
After structured logging: /godmode:observe to add metrics and tracing alongside logs.
If error handling needed: /godmode:errorhandling to design error hierarchy first.
For security review: /godmode:secure to verify PII redaction compliance.
/godmode:logging # Full structured logging implementation
/godmode:logging --structured # Convert console.log to pino/structlog
/godmode:logging --tracing # Add correlation IDs across microservices
/godmode:logging --pii # Audit and redact PII from all log output
/godmode:logging --aggregation # Set up Grafana Loki pipeline