logrusext

package
v1.30.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2025 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sampler

type Sampler struct {
	// contains filtered or unexported fields
}

Sampler is a very simple log sampler which prints up to N log messages every tick duration.

func NewSampler

func NewSampler(l logrus.FieldLogger, n int, tick time.Duration) *Sampler

func (*Sampler) WithSampling

func (s *Sampler) WithSampling(fn func(l logrus.FieldLogger))

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL