MCPcopy
hub / github.com/uber-go/zap / LeveledEnabler

Interface LeveledEnabler

internal/level_enabler.go:33–37  ·  internal/level_enabler.go::LeveledEnabler

LeveledEnabler is an interface satisfied by LevelEnablers that are able to report their own level. This interface is defined to use more conveniently in tests and non-zapcore packages. This cannot be imported from zapcore because of the cyclic dependency.

Source from the content-addressed store, hash-verified

31// packages.
32// This cannot be imported from zapcore because of the cyclic dependency.
33type LeveledEnabler interface {
34 zapcore.LevelEnabler
35
36 Level() zapcore.Level
37}

Callers

nothing calls this directly

Implementers 9

AtomicLevellevel.go
Loggerlogger.go
ioCorezapcore/core.go
hookedzapcore/hook.go
samplerzapcore/sampler.go
enablerWithCustomLevelzapcore/level_test.go
levelFilterCorezapcore/increase_level.go
contextObserverzaptest/observer/observer.go

Calls

no outgoing calls

Tested by

no test coverage detected