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)
| 125 | // |
| 126 | // This is a variadic version that accepts a list of individual strings. |
| 127 | func (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. |
| 132 | func (c Context) Stringer(key string, val fmt.Stringer) Context { |