Agent skill · writing content · secondsky
logging-best-practices
Structured logging with proper levels, context, PII handling, centralized aggregation. Use for application logging, log management integration, distributed tracing, or encountering log bloat, PII exposure, missing context errors.
Why this skill is useful
Provides domain-specific knowledge on structured logging practices and implementations that the AI wouldn't reliably generate on its own.
What it needs
About 1k tokens when loaded. Last updated 2026-08-06. 204 stars on the source repository.
What this skill does
Logging Best Practices Implement secure, structured logging with proper levels and context. Log Levels Level Use For Production ------- --------- ------------ DEBUG Detailed debugging Off INFO Normal operations On WARN Potential issues On ERROR Errors with recovery On FATAL Critical failures On Structured Logging (Winston) Request Context PII Sanitization Best Practices Use structured JSON format Include correlation IDs across services Sanitize all PII before logging Use async logging for performance Implement log rotation Never log at DEBUG in production Additional Implementations See references/advanced-logging.md for: Python structlog setup Go zap high-performance logging ELK Stack integration AWS CloudWatch configuration OpenTelemetry tracing Never Do Log passwords or tokens Use console.log in production Log inside tight loops Include stack traces for client errors
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills secondsky/logging-best-practices