MCPcopy
hub / github.com/rs/zerolog / LevelSampler

Struct LevelSampler

sampler.go:109–111  ·  view source on GitHub ↗

LevelSampler applies a different sampler for each level.

Source from the content-addressed store, hash-verified

107
108// LevelSampler applies a different sampler for each level.
109type LevelSampler struct {
110 TraceSampler, DebugSampler, InfoSampler, WarnSampler, ErrorSampler Sampler
111}
112
113func (s LevelSampler) Sample(lvl Level) bool {
114 switch lvl {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected