dlg delog - /diːˈlɑːɡ/ Printf-Style Debugging with Zero-Cost in Production Builds
dlg provides a minimal API for printf-style debugging - a lightweight logger that completely vanishes from production builds while providing rich debugging capabilities during development.
When built without the dlg tag, all logging calls disappear entirely from your binary, resulting in no runtime overhead.
Why dlg?
🚀 True zero-cost abstraction - Logging calls completely disappear from production binaries
- Logging calls completely disappear from production binaries ⚡️ Near-zero overhead - Performance-focused design for debug builds
- Performance-focused design for debug builds 🔍 Smart stack traces - Runtime-configurable stack trace generation
- Runtime-configurable stack trace generation 🔒 Concurrent-safe by design - Custom writers simply implement sync.Locker to be safe
- Custom writers simply implement to be safe ✨ Minimalist API - Exposes just two functions, Printf and SetOutput
The Magic of Zero-Cost
... continue reading