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

Method SetLevel

level.go:122–124  ·  level.go::AtomicLevel.SetLevel

SetLevel alters the logging level.

(l zapcore.Level)

Source from the content-addressed store, hash-verified

120
121// SetLevel alters the logging level.
122func (lvl AtomicLevel) SetLevel(l zapcore.Level) {
123 lvl.l.Store(int32(l))
124}
125
126// String returns the string representation of the underlying Level.
127func (lvl AtomicLevel) String() string {

Callers 11

serveHTTPMethod · 0.95
TestLoggerAtomicLevelFunction · 0.95
TestAtomicLevelServeHTTPFunction · 0.95
ExampleAtomicLevelFunction · 0.95
NewAtomicLevelAtFunction · 0.95
ParseAtomicLevelFunction · 0.95
UnmarshalTextMethod · 0.95
TestNewAtomicLevelFunction · 0.95
TestAtomicLevelMutationFunction · 0.95
TestAtomicLevelTextFunction · 0.95

Calls

no outgoing calls

Tested by 7

TestLoggerAtomicLevelFunction · 0.76
TestAtomicLevelServeHTTPFunction · 0.76
ExampleAtomicLevelFunction · 0.76
TestNewAtomicLevelFunction · 0.76
TestAtomicLevelMutationFunction · 0.76
TestAtomicLevelTextFunction · 0.76