Skip to content

v0.1.0 - Comprehensive Logging Management System

Choose a tag to compare

@nghiant0921 nghiant0921 released this 31 May 14:44
· 17 commits to main since this release

Log Module v0.1.0

Initial release of the comprehensive logging management system for Go applications.

🚀 Features

Core Functionality

  • Thread-Safe Logging: Safe concurrent logging from multiple goroutines
  • Multiple Log Levels: Debug, Info, Warning, Error, and Fatal levels
  • Printf-Style Formatting: Support for placeholder formatting in log messages

Handlers

  • Console Handler: Color-coded output with advanced formatting
  • File Handler: File logging with automatic rotation support
  • Stack Handler: Send logs to multiple destinations simultaneously

Integration & Extensibility

  • DI Integration: Seamless integration with Dependency Injection container
  • Extensible API: Custom handler support through Handler interface
  • Configurable Levels: Minimum log levels configuration for each handler

Performance & Reliability

  • Resource Management: Automatic cleanup and proper handler closure
  • Error Resilience: Individual handler failures don't crash the logging system
  • Memory Optimization: Optimized for high-throughput logging scenarios
  • Minimal Lock Contention: Efficient concurrent logging design

Advanced Features

  • Context Logging: Structured metadata support with context
  • OpenTelemetry Integration: Trace context support for distributed tracing
  • Structured Logging: Integration with structured logging standards
  • File Rotation: Automatic rotation based on size and time triggers
  • Dynamic Configuration: Runtime handler management and reconfiguration

📦 Installation

go get go.fork.vn/log@v0.1.0

📚 Documentation

  • Module Path: go.fork.vn/log
  • Repository: github.com/go-fork/log
  • Go Version: 1.23.9+
  • Test Coverage: 100% pass rate (47 tests)

🔗 Dependencies

  • go.fork.vn/di: Dependency injection integration

This is the initial standalone release, providing a solid foundation for logging in Go applications with excellent performance and flexibility.