Skip to content

Tags: go-fork/log

Tags

v0.1.7

Toggle v0.1.7's commit message
🚀 Release v0.1.7: Stack Handler Duplicate Logging Fix

This release fixes a critical bug where log messages were duplicated when both individual handlers (console/file) and stack handler were enabled simultaneously.

- Eliminated duplicate log output in Stack Handler configurations
- Enhanced Stack Handler to respect stack.handlers.console and stack.handlers.file settings
- Improved handler selection logic to prevent redundant outputs

- Smart conditional handler addition prevents duplication
- Better separation between individual and composite stack handlers
- More predictable and granular stack handler configuration
- Enhanced performance by reducing redundant I/O operations

- Zero breaking changes - all existing code continues to work
- Backward compatible with all previous configurations
- Existing configurations now work better with improved behavior

- Cleaner log output without unexpected duplicates
- Better user experience with predictable logging behavior
- Improved performance from reduced redundant writes
- Enhanced configuration flexibility and control

Full release notes: https://github.com/go-fork/log/releases/tag/v0.1.7

v0.1.6

Toggle v0.1.6's commit message
v0.1.6: Configuration Architecture & Testing Infrastructure Improvements

🎯 Release Focus: Configuration Architecture & Testing Infrastructure

✨ Key Improvements:
• Secure defaults with empty file paths by default
• Conditional validation based on actual handler usage
• Graceful test skipping for missing directories
• Enhanced portability using t.TempDir()
• Removed hardcoded 'storages/log/app.log' dependency

🔧 Technical Changes:
• DefaultConfig() uses empty file path for better security
• File validation only when handlers are actually enabled
• Skip-based testing for missing dependencies
• Enhanced CI/CD compatibility

📊 Quality Metrics:
• ✅ Backward Compatible - No breaking changes
• ✅ Enhanced Security - No accidental file creation
• ✅ Improved Portability - Tests work anywhere
• ✅ Cleaner Development - No mandatory directories

📚 Documentation: Complete release notes, migration guide, and troubleshooting

🚀 Ready for Production Use

v0.1.5

Toggle v0.1.5's commit message
Release v0.1.5: Enhanced FileHandler Security & CI/CD Fixes

🔒 Security Enhancements:
- FileHandler now requires explicit directory creation and validates write permissions
- Removed automatic directory creation for better security and explicit control
- Enhanced directory validation with specific error messages

🚀 CI/CD Pipeline Fixes:
- Fixed staticcheck SA9003 empty branch warning in config.go
- Fixed errcheck warnings for unchecked os.Chmod calls in test files
- Upgraded GitHub Actions cache from v3 to v4 to resolve module caching issues
- Enhanced test directory setup for CI environment compatibility

🧪 Test Infrastructure Improvements:
- Converted all test case names to snake_case format for consistency
- Added proper directory creation for CI/CD test environments
- Created storages/log/ directory structure for default configuration tests
- Enhanced test coverage for file handler edge cases and error conditions

⚠️ Breaking Changes:
- NewFileHandler now requires the directory to exist beforehand
- No longer automatically creates directories
- File.Path is always validated regardless of File.Enabled status

📋 Documentation:
- Comprehensive migration guide for breaking changes
- Updated release notes with CI/CD fixes and enhancements
- Enhanced configuration examples and validation scenarios

Version: v0.1.5
Release Date: 2025-06-07
Go Version: 1.23+
Dependencies: go.fork.vn/config v0.1.3, go.fork.vn/di v0.1.3

v0.1.4

Toggle v0.1.4's commit message
v0.1.4: Complete Vietnamese Documentation Overhaul

🎉 Major documentation enhancement release focusing on developer experience

📚 Complete Vietnamese Documentation Suite (6 files, ~95KB)
🎨 12+ Mermaid architecture diagrams for visual learning
🚀 Deep Fork Framework integration patterns with DI container
⚙️ Environment-specific configurations (dev/prod/test/container)
🌟 Professional README.md with modern GitHub presentation
⚡ 50+ practical code examples and real-world patterns
✅ Zero breaking changes - all existing APIs unchanged

- docs/index.md (8.2KB) - Main hub with navigation
- docs/overview.md (7.6KB) - Architecture with diagrams
- docs/configuration.md (12.3KB) - Environment configs
- docs/handler.md (14.6KB) - Handler implementations
- docs/logger.md (15.3KB) - Logger patterns
- docs/workflows.md (20.9KB) - Integration workflows

Significantly improved accessibility for Vietnamese developers and teams using Fork Framework. Makes the package much easier to integrate correctly in production applications.

Full release notes: releases/v0.1.4/RELEASE_NOTES.md

v0.1.3

Toggle v0.1.3's commit message
v0.1.3: Test naming convention refactoring to Fork Framework standard

Changes:
- Migrated all test functions to Fork Framework naming convention Test{TypeName}_{MethodName}[_{Scenario}]
- Migrated benchmark functions to Benchmark{TypeName}_{MethodName}[_{Scenario}] pattern
- Fixed ServiceProvider.Boot() method to validate nil container consistently with Register()
- Upgraded dependencies: go.fork.vn/config and go.fork.vn/di to v0.1.3
- Updated CHANGELOG.md and release documentation

Quality Metrics:
- 100% test pass rate
- Zero static analysis issues (go vet, golangci-lint)
- 13 files modified with standardized naming convention
- Improved code consistency and maintainability

Breaking Changes (for extension only):
- Test function names pattern changed
- Benchmark function names pattern changed

Release Date: June 4, 2025

v0.1.2

Toggle v0.1.2's commit message
Version 0.1.2: Performance optimizations, extensive benchmarks, and t…

…est infrastructure improvements

v0.1.1

Toggle v0.1.1's commit message
Release version 0.1.1

v0.1.0

Toggle v0.1.0's commit message
Release v0.1.0: Comprehensive logging management system

Features:
- Thread-safe logging manager with multiple log levels
- Multiple handlers: Console, File, and Stack
- DI integration with go.fork.vn/di
- Advanced color formatting and file rotation
- Extensible API for custom handlers
- Resource management and error resilience

Dependencies refreshed to use published module versions.