Repository navigation
v0.3.0
v0.3.0 - Enterprise Features & Production Fixes
New Features
- Async/buffered logging with configurable flush intervals
- Log sampling with per-level rates
- Field redaction for sensitive data (passwords, tokens, API keys)
- Context and child loggers for metadata and scoped logging
- Error serialization with full stack traces
- Webhook transport: configurable timeouts, buffer limits, batch sizes
- File transport: JSON and plain text formats
Production Fixes
- Fixed race conditions in webhook buffer, LogBuffer, and file transport initialization
- Added webhook buffer size limits to prevent memory exhaustion
- Fixed file transport backpressure handling
- Added webhook timeout support (default: 30s)
- Console guards prevent crashes in environments without console
- BigInt serialization support
- Circular reference handling across all serialization points
- Process exit cleanup handlers (SIGTERM/SIGINT) flush logs gracefully
- Memory leak prevention with timer unref()
Stats
- 112 tests passing
- ~3KB gzipped, zero dependencies
- 400k+ logs/sec
No breaking changes. All existing code continues to work.
Full Changelog: v0.2.0...v0.3.0