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

Method Str

context.go:111–114  ·  view source on GitHub ↗

Str adds the field key with val as a string to the logger context.

(key, val string)

Source from the content-addressed store, hash-verified

109
110// Str adds the field key with val as a string to the logger context.
111func (c Context) Str(key, val string) Context {
112 c.l.context = enc.AppendString(enc.AppendKey(c.l.context, key), val)
113 return c
114}
115
116// Strs adds the field key with val as a string to the logger context.
117//

Callers 2

AnErrMethod · 0.95
ErrMethod · 0.95

Calls 2

AppendStringMethod · 0.65
AppendKeyMethod · 0.65

Tested by

no test coverage detected