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

Method Strs

context.go:119–122  ·  view source on GitHub ↗

Strs adds the field key with val as a string to the logger context. This is the array version that accepts a slice of string values.

(key string, vals []string)

Source from the content-addressed store, hash-verified

117//
118// This is the array version that accepts a slice of string values.
119func (c Context) Strs(key string, vals []string) Context {
120 c.l.context = enc.AppendStrings(enc.AppendKey(c.l.context, key), vals)
121 return c
122}
123
124// StrsV adds the field key with vals as a []string to the logger context.
125//

Callers 1

StrsVMethod · 0.95

Calls 2

AppendStringsMethod · 0.65
AppendKeyMethod · 0.65

Tested by

no test coverage detected