logging-config

Official

Enforce structured slog logging across projects.

Authorair-gapped
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This skill standardizes logging across Go applications by enforcing the use of slog with structured fields, replacing ad-hoc logging patterns like fmt.Printf or log.Printf to produce consistent, machine-readable logs.

Core Features & Use Cases

  • Enforces use of slog and JSON-formatted output for all logs.
  • Provides a single, centralized logger initialization pattern to ensure consistent fields.
  • Improves observability and debugging by using structured key-value pairs.

Quick Start

  1. Initialize a global slog logger at program startup with a JSON handler that writes to stdout.
  2. Replace log.Printf/fmt.Println usages with slog using structured fields (e.g., slog.Info("request processed", "method", "GET", "path", "/login")).

Dependency Matrix

Required Modules

None required

Components

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: logging-config
Download link: https://github.com/air-gapped/cooked/archive/main.zip#logging-config

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.