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

Method Enabled

level.go:112–114  ·  level.go::AtomicLevel.Enabled

Enabled implements the zapcore.LevelEnabler interface, which allows the AtomicLevel to be used in place of traditional static levels.

(l zapcore.Level)

Source from the content-addressed store, hash-verified

110// Enabled implements the zapcore.LevelEnabler interface, which allows the
111// AtomicLevel to be used in place of traditional static levels.
112func (lvl AtomicLevel) Enabled(l zapcore.Level) bool {
113 return lvl.Level().Enabled(l)
114}
115
116// Level returns the minimum enabled log level.
117func (lvl AtomicLevel) Level() zapcore.Level {

Callers

nothing calls this directly

Calls 2

LevelMethod · 0.95
EnabledMethod · 0.65

Tested by

no test coverage detected