slog-rs / slog

Structured, contextual, extensible, composable logging for Rust
https://slog.rs/
Apache License 2.0
1.57k stars 95 forks source link

Sampling and deduping #181

Open ishitatsuyuki opened 6 years ago

ishitatsuyuki commented 6 years ago

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.

dpc commented 6 years ago

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