Merge pull request #15407 from tjhop/chore/slog-handler-compile-check

chore(deduper): add compile check that slog.Handler interface is satisfied
This commit is contained in:
Björn Rabenstein 2024-11-20 15:25:04 +01:00 committed by GitHub
commit ca600cfaff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -26,6 +26,8 @@ const (
maxEntries = 1024
)
var _ slog.Handler = (*Deduper)(nil)
// Deduper implements *slog.Handler, dedupes log lines based on a time duration.
type Deduper struct {
next *slog.Logger