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

Method MarshalText

level.go:151–153  ·  view source on GitHub ↗

MarshalText marshals the AtomicLevel to a byte slice. It uses the same text representation as the static zapcore.Levels ("debug", "info", "warn", "error", "dpanic", "panic", and "fatal").

()

Source from the content-addressed store, hash-verified

149// text representation as the static zapcore.Levels ("debug", "info", "warn",
150// "error", "dpanic", "panic", and "fatal").
151func (lvl AtomicLevel) MarshalText() (text []byte, err error) {
152 return lvl.Level().MarshalText()
153}

Callers 1

TestAtomicLevelTextFunction · 0.95

Calls 1

LevelMethod · 0.95

Tested by 1

TestAtomicLevelTextFunction · 0.76