structlog-logging-specialist
CommunityStructured logging with context-rich logs.
Authorpaunchygent
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill guides you to implement structured logging with Structlog in HuleEdu services, enabling cross-service correlation, async-safe context propagation, and production-grade JSON output.
Core Features & Use Cases
- Structlog Configuration: Production (JSON) vs Development (colored console) setup
- Correlation Propagation: HTTP request → logs, Kafka events → logs, cross-service tracing
- Context Variables: Async-safe context binding with
bind_contextvars - Logger Creation: Service-specific logger instances
- Event Logging & Error Integration: Structured logging with correlation context in error handlers
- JSON Output: Production-ready JSON logs for Loki
Quick Start
Install and configure the logging utilities, create module loggers with create_service_logger, bind correlation context at request boundaries, emit logs with structured fields such as correlation_id and event_id, and ensure to clear contextvars at the end of processing.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 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: structlog-logging-specialist Download link: https://github.com/paunchygent/docforge/archive/main.zip#structlog-logging-specialist Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.