slog icon indicating copy to clipboard operation
slog copied to clipboard

Sampling and deduping

Open ishitatsuyuki opened this issue 5 years ago • 1 comments

A Go logging library, zap has the ability to throttle duplicate output if the rate is too high: https://godoc.org/go.uber.org/zap#SamplingConfig

It's a quite good feature to have, both for not accidentally filling up the disk space (or forcing logrotate discarding data), and for making development easier.

ishitatsuyuki avatar Sep 06 '18 00:09 ishitatsuyuki

That could totally be done. slog-dedup crate sounds great. If anyone is interested, go for it!

dpc avatar Sep 06 '18 03:09 dpc