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

Function CapitalLevelEncoder

zapcore/encoder.go:63–65  ·  view source on GitHub ↗

CapitalLevelEncoder serializes a Level to an all-caps string. For example, InfoLevel is serialized to "INFO".

(l Level, enc PrimitiveArrayEncoder)

Source from the content-addressed store, hash-verified

61// CapitalLevelEncoder serializes a Level to an all-caps string. For example,
62// InfoLevel is serialized to "INFO".
63func CapitalLevelEncoder(l Level, enc PrimitiveArrayEncoder) {
64 enc.AppendString(l.CapitalString())
65}
66
67// CapitalColorLevelEncoder serializes a Level to an all-caps string and adds color.
68// For example, InfoLevel is serialized to "INFO" and colored blue.

Callers

nothing calls this directly

Calls 2

CapitalStringMethod · 0.80
AppendStringMethod · 0.65

Tested by

no test coverage detected