go-log
go-log copied to clipboard
Non-blocking logging
The default zap file backend logging backend is really dumb and doesn't have any internal buffering. We need to:
- Buffer writes.
- Drop log messages when the buffer is full instead of blocking.
We should never block execution on logging.
Turns out zap support sampling and we've disabled it. We should enable and tune it.