mirror of
https://github.com/yusing/godoxy.git
synced 2026-03-22 09:09:08 +01:00
Replace synchronous log writing with zerolog's diode-based non-blocking writer to prevent logging from blocking the main application during log bursts. The diode writer buffers up to 1024 messages and logs a warning when messages are dropped. - Extract multi-writer logic into separate `multiWriter` function - Wrap with `diode.NewWriter` for async buffering - Update both `NewLogger` and `NewLoggerWithFixedLevel` to use diode
2.5 KiB
2.5 KiB