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

Method Int16

context.go:274–277  ·  view source on GitHub ↗

Int16 adds the field key with i as a int16 to the logger context.

(key string, i int16)

Source from the content-addressed store, hash-verified

272
273// Int16 adds the field key with i as a int16 to the logger context.
274func (c Context) Int16(key string, i int16) Context {
275 c.l.context = enc.AppendInt16(enc.AppendKey(c.l.context, key), i)
276 return c
277}
278
279// Ints16 adds the field key with i as a []int16 to the logger context.
280func (c Context) Ints16(key string, i []int16) Context {

Callers

nothing calls this directly

Calls 2

AppendInt16Method · 0.65
AppendKeyMethod · 0.65

Tested by

no test coverage detected