Skip to content

v3.1.0 - Enhanced Context Support and Performance Improvements

Choose a tag to compare

@rendis rendis released this 28 Sep 17:51
· 1 commit to master since this release

✨ New Features

  • πŸ”§ Flexible Context Configuration: Added ContextKey method to AbsLogBuilder for configurable context key management
  • 🎯 Enhanced Logging Interface: Introduced LoggerAdapter for consistent logging across different implementations

⚑ Performance Improvements

  • πŸš€ Optimized Context Formatting: Implemented strings.Builder for more efficient context value formatting
  • πŸ”„ Streamlined Operations: Combined context values with log messages in single operations for better performance

πŸ› οΈ Refactoring & Code Quality

  • πŸ†• Modern Go Syntax: Replaced interface{} with any for better consistency
  • πŸŽ›οΈ Default Configuration: Added default values for context configuration with enhanced setter functions
  • 🧹 Simplified API: Removed caller info and improved context value handling

πŸ“š Documentation & Community

  • πŸ“– Enhanced README: Added output examples and clarified logger configuration methods
  • 🀝 Contributing Guide: Added comprehensive guide to enhance community collaboration
  • πŸ“ Improved Documentation: Better package documentation with context support examples

πŸ”§ Dependencies & Maintenance

  • ⬆️ Updated Dependencies: Bumped go.uber.org/zap to v1.27.0
  • πŸ—‘οΈ Cleanup: Removed unused dependencies
  • πŸ”„ Go Version: Updated to Go 1.25.1

This release focuses on enhancing the logging experience with better context support, improved performance, and
comprehensive documentation updates.