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

Method Level

level.go:117–119  ·  view source on GitHub ↗

Level returns the minimum enabled log level.

()

Source from the content-addressed store, hash-verified

115
116// Level returns the minimum enabled log level.
117func (lvl AtomicLevel) Level() zapcore.Level {
118 return zapcore.Level(int8(lvl.l.Load()))
119}
120
121// SetLevel alters the logging level.
122func (lvl AtomicLevel) SetLevel(l zapcore.Level) {

Callers 7

serveHTTPMethod · 0.95
EnabledMethod · 0.95
StringMethod · 0.95
MarshalTextMethod · 0.95
TestNewAtomicLevelFunction · 0.95
TestAtomicLevelMutationFunction · 0.95
TestAtomicLevelTextFunction · 0.95

Calls 1

LevelTypeAlias · 0.92

Tested by 3

TestNewAtomicLevelFunction · 0.76
TestAtomicLevelMutationFunction · 0.76
TestAtomicLevelTextFunction · 0.76