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

Function NewAtomicLevelAt

level.go:87–91  ·  view source on GitHub ↗

NewAtomicLevelAt is a convenience function that creates an AtomicLevel and then calls SetLevel with the given level.

(l zapcore.Level)

Source from the content-addressed store, hash-verified

85// NewAtomicLevelAt is a convenience function that creates an AtomicLevel
86// and then calls SetLevel with the given level.
87func NewAtomicLevelAt(l zapcore.Level) AtomicLevel {
88 a := NewAtomicLevel()
89 a.SetLevel(l)
90 return a
91}
92
93// ParseAtomicLevel parses an AtomicLevel based on a lowercase or all-caps ASCII
94// representation of the log level. If the provided ASCII representation is

Callers 6

NewProductionConfigFunction · 0.85
NewDevelopmentConfigFunction · 0.85
TestNewAtomicLevelFunction · 0.85
TestParseAtomicLevelFunction · 0.85

Calls 2

SetLevelMethod · 0.95
NewAtomicLevelFunction · 0.85

Tested by 4

TestNewAtomicLevelFunction · 0.68
TestParseAtomicLevelFunction · 0.68