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

Method StrsV

event.go:337–339  ·  view source on GitHub ↗

StrsV adds the field key with vals as a []string to the *Event 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

335//
336// This is a variadic version that accepts a list of individual strings.
337func (e *Event) StrsV(key string, vals ...string) *Event {
338 return e.Strs(key, vals)
339}
340
341// Stringer adds the field key and a val to the *Event context.
342// If val is not nil, it is added by calling val.String().

Callers 9

TestEvent_WithNilEventFunction · 0.95
TestWithPluralsFunction · 0.45
TestFieldsArrayNilFunction · 0.45
TestFieldsArrayEmptyFunction · 0.45
TestFieldsDisabledFunction · 0.45
BenchmarkLogFieldTypeFunction · 0.45

Calls 1

StrsMethod · 0.95

Tested by 9

TestEvent_WithNilEventFunction · 0.76
TestWithPluralsFunction · 0.36
TestFieldsArrayNilFunction · 0.36
TestFieldsArrayEmptyFunction · 0.36
TestFieldsDisabledFunction · 0.36
BenchmarkLogFieldTypeFunction · 0.36