Boost Wrapper Logging

•
12
•

Implements structured, context-aware logging for Go services using the Boost framework abstraction.

The Boost Wrapper Log skill streamlines the implementation of structured logging within Go applications using the github.com/xgodev/boost/wrapper/log package. It enforces the 'Logger from Context' pattern to ensure that request-scoped metadata, such as tracing IDs and enrichment fields, are preserved across call chains. This skill is particularly useful for developers migrating legacy logging implementations (Zap, Zerolog, Slog) into a unified Boost architecture, providing automated guidance on field enrichment and preventing anti-patterns like process-fatal calls within request handlers.

주요 기능

01Enforces context-aware logging via log.FromContext
02Promotes structured logging fields over formatted strings
03Detects and fixes anti-patterns like log.Fatal in handlers
04Supports backend-agnostic logging configuration
05Automates migration from Zap, Zerolog, Slog, and standard log
0612 GitHub stars

사용 사례

01Ensuring distributed tracing IDs are correctly propagated through service logs
02Standardizing structured error reporting across a backend team
03Migrating a Go microservice to use the Boost framework logging abstraction