MCPcopy
hub / github.com/rs/zerolog / Stringers

Method Stringers

context.go:146–149  ·  view source on GitHub ↗

Stringers adds the field key with vals to the logger context where each individual val is added by calling val.String(). This is the array version that accepts a slice of fmt.Stringer values.

(key string, vals []fmt.Stringer)

Source from the content-addressed store, hash-verified

144//
145// This is the array version that accepts a slice of fmt.Stringer values.
146func (c Context) Stringers(key string, vals []fmt.Stringer) Context {
147 c.l.context = enc.AppendStringers(enc.AppendKey(c.l.context, key), vals)
148 return c
149}
150
151// StringersV adds the field key with vals to the logger context where each
152// individual val is added by calling val.String().

Callers 1

StringersVMethod · 0.95

Calls 2

AppendKeyMethod · 0.65
AppendStringersMethod · 0.45

Tested by

no test coverage detected