pkg-zap
CommunityComprehensive logging reference for efficient diagnostics.
Authorep0ll
Version1.0.0
Installs0
System Documentation
What problem does it solve?
It provides an in-depth reference for implementing structured, efficient logging with the zap library to improve application observability.
Core Features & Use Cases
- Logger Construction: Guides creating custom production and development loggers.
- API Usage: Demonstrates core API and Sugar API for flexible logging.
- Child Loggers & Dynamic Level Control: Explains creating scoped loggers and adjusting log levels at runtime.
- Bridge to slog: Shows integrating zap with slog-based components.
- Error Handling & Flushing: Details best practices for conveying errors and ensuring log data is persisted.
- Use Cases: Suitable for backend servers, microservices, or any application needing structured, high-performance logging.
Quick Start
Review sample functions to create custom loggers and incorporating error logging in your code.
Dependency Matrix
Required Modules
None requiredComponents
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-zap Download link: https://github.com/ep0ll/bons-ci/archive/main.zip#pkg-zap 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 471,000+ vetted skills library on demand.