logging-best-practices

Community

Write better logs, debug faster.

AuthorFaisalAlqarni
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill addresses the challenge of insufficient context and correlation in application logs, making debugging and incident investigation difficult and time-consuming.

Core Features & Use Cases

  • Structured Logging: Enforces the "wide event" pattern for rich, context-aware log entries.
  • Contextual Data: Guides on including essential fields like request_id, duration_ms, and status.
  • Use Case: When a production error occurs, easily filter logs by request_id to see the entire lifecycle of the problematic request, including user context, operation details, and error class, all within a single log entry.

Quick Start

Apply the logging best practices to ensure all requests generate a single, context-rich log event.

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: logging-best-practices
Download link: https://github.com/FaisalAlqarni/sp-ecc/archive/main.zip#logging-best-practices

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.