Objects adds the field key with objs to the logger context as an array of objects that implement the LogObjectMarshaler interface. This is the array version that accepts a slice of LogObjectMarshaler objects.
(key string, objs []LogObjectMarshaler)
| 83 | // |
| 84 | // This is the array version that accepts a slice of LogObjectMarshaler objects. |
| 85 | func (c Context) Objects(key string, objs []LogObjectMarshaler) Context { |
| 86 | e := c.l.scratchEvent() |
| 87 | e.Objects(key, objs) |
| 88 | c.l.context = enc.AppendObjectData(c.l.context, e.buf) |
| 89 | putEvent(e) |
| 90 | return c |
| 91 | } |
| 92 | |
| 93 | // ObjectsV adds the field key with objs to the logger context as an array of |
| 94 | // objects that implement the LogObjectMarshaler interface. |
no test coverage detected