log-designing

Community

Design actionable, structured application logs

Authorswat9013
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill helps teams and developers design logging that is both machine-readable and actionable, reducing time-to-diagnosis and enabling automated incident triage by prescribing format, content, and CLI conventions.

Core Features & Use Cases

  • Seven design principles: structured-first JSON output, semantic error codes, complete reproduction data, correlation IDs, stdout/stderr separation, staged verbosity, and signal-to-noise optimization.
  • CLI patterns & verbosity: clear rules for when to write to stdout vs stderr, standard -v/-vv/-vvv/-q mappings, and environment variable fallbacks like LOG_LEVEL or RUST_LOG.
  • Error code design & required fields: category-based E4xx/E5xx/E6xx template and mandatory error log fields (error_code, message, input, expected/actual, stack_trace, context, correlation_id, suggestions).
  • Libraries & rollout: recommended libraries per language (Python structlog, Node Pino, Go slog, Rust tracing) and a phased adoption flow from quick JSON adoption to OpenTelemetry integration.

Quick Start

Generate a concise logging design checklist that enforces JSON structured logs, semantic error codes with E4xx–E6xx categories, correlation IDs, stdout/stderr separation, and staged verbosity flags.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: log-designing
Download link: https://github.com/swat9013/dotfiles/archive/main.zip#log-designing

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.