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

Method Enabled

zapcore/lazy_with.go:64–67  ·  view source on GitHub ↗
(level Level)

Source from the content-addressed store, hash-verified

62}
63
64func (d *lazyWithCore) Enabled(level Level) bool {
65 // Like above, this is safe because `lazyWithCore` doesn't change the level.
66 return d.originalCore.Enabled(level)
67}
68
69func (d *lazyWithCore) Write(e Entry, fields []Field) error {
70 d.initOnce()

Callers

nothing calls this directly

Calls 1

EnabledMethod · 0.65

Tested by

no test coverage detected