pkg-slog

Community

Master Go logging with comprehensive, effortless tools.

Authorep0ll
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Developers and operations teams struggle with implementing consistent and effective logging in Go applications, hindering debugging, monitoring, and observability.

Core Features & Use Cases

  • Logger Configuration: Simplifies setting up JSON and text log handlers tailored for production and development environments.
  • Structured Logging: Enables injecting detailed, contextual information into logs, improving traceability.
  • Use Case: Automate logging in a web service to include request IDs and source locations for easier troubleshooting.
  • Advanced Patterns: Supports context-aware logs, custom handlers for tracing, and attribute grouping for organized data.

Quick Start

Use slog to create a structured logger that outputs JSON logs with source info when running your Go service.

Dependency Matrix

Required Modules

log/slog

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: pkg-slog
Download link: https://github.com/ep0ll/bons-ci/archive/main.zip#pkg-slog

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 471,000+ vetted skills library on demand.