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

Method StrsV

context.go:127–129  ·  view source on GitHub ↗

StrsV adds the field key with vals as a []string to the logger context. This is a variadic version that accepts a list of individual strings.

(key string, vals ...string)

Source from the content-addressed store, hash-verified

125//
126// This is a variadic version that accepts a list of individual strings.
127func (c Context) StrsV(key string, vals ...string) Context {
128 return c.Strs(key, vals)
129}
130
131// Stringer adds the field key with val.String() (or null if val is nil) to the logger context.
132func (c Context) Stringer(key string, val fmt.Stringer) Context {

Callers

nothing calls this directly

Calls 1

StrsMethod · 0.95

Tested by

no test coverage detected