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

Method Errs

context.go:203–206  ·  view source on GitHub ↗

Errs adds the field key with errs as an array of serialized errors to the logger context.

(key string, errs []error)

Source from the content-addressed store, hash-verified

201// Errs adds the field key with errs as an array of serialized errors to the
202// logger context.
203func (c Context) Errs(key string, errs []error) Context {
204 arr := c.CreateArray().Errs(errs)
205 return c.Array(key, arr)
206}
207
208// Err adds the field "error" with serialized err to the logger context.
209func (c Context) Err(err error) Context {

Callers

nothing calls this directly

Calls 2

CreateArrayMethod · 0.95
ArrayMethod · 0.95

Tested by

no test coverage detected