LevelSampler applies a different sampler for each level.
| 107 | |
| 108 | // LevelSampler applies a different sampler for each level. |
| 109 | type LevelSampler struct { |
| 110 | TraceSampler, DebugSampler, InfoSampler, WarnSampler, ErrorSampler Sampler |
| 111 | } |
| 112 | |
| 113 | func (s LevelSampler) Sample(lvl Level) bool { |
| 114 | switch lvl { |
nothing calls this directly
no outgoing calls
no test coverage detected