New
release v0.7.0
v0.7.0 (July 18, 2025)
Added
-
Full Async Logging Support π
AsyncLoggerwith non-blocking operationsAsyncLogQueuewith configurable backpressure and automatic message droppingAsyncConsoleHandlerandAsyncFileHandlerwith buffering and rotation- Background processing thread with graceful shutdown
- Zero-copy message queuing with proper memory management
- Thread-safe multi-handler support
- Comprehensive async demo and quick start guide
- Perfect integration with async runtimes - no event loop blocking
-
Context tracking support
LogContextstruct for request and correlation IDsContextManagerfor thread-safe context storage- New template placeholders:
{request_id},{correlation_id},{trace_id},{operation} - Helper functions:
setRequestContext(),correlate(),clearContext() hereWithContext(@src())for context-aware logging- Example in
context_tracking.zig
Fixed
- Critical Memory Leaks in Core Logger π§
- Fixed memory leaks in
ConsoleHandler,Formatter, andLoggercleanup - Proper
deinit()implementation for all allocations - Fixed ArrayList and placeholder cache memory management
- Resolves GPA memory leak errors in test environments
- Fixed memory leaks in
Performance
- Major performance boost: Stack buffer optimization eliminates heap allocations for common log sizes, achieving 63% improvement in JSON formatting (27Kβ44K logs/s)
- small performance impact on other formats
Deprecated
- Deprecated
NetworkHandlerandNetworkOutputAPIs (On Hold for now)- Note: Network output is highly experimental and not tested in production environments
- Use
FileHandleror custom handlers for reliable logging - Future: Will be thoroughly tested, evolved, and stabilized in upcoming versions