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

Function humanEncoderConfig

zapcore/encoder_test.go:66–72  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

64}
65
66func humanEncoderConfig() EncoderConfig {
67 cfg := testEncoderConfig()
68 cfg.EncodeTime = ISO8601TimeEncoder
69 cfg.EncodeLevel = CapitalLevelEncoder
70 cfg.EncodeDuration = StringDurationEncoder
71 return cfg
72}
73
74func capitalNameEncoder(loggerName string, enc PrimitiveArrayEncoder) {
75 enc.AppendString(strings.ToUpper(loggerName))

Callers 1

BenchmarkZapConsoleFunction · 0.85

Calls 1

testEncoderConfigFunction · 0.85

Tested by

no test coverage detected