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

Method Int8

context.go:262–265  ·  view source on GitHub ↗

Int8 adds the field key with i as a int8 to the logger context.

(key string, i int8)

Source from the content-addressed store, hash-verified

260
261// Int8 adds the field key with i as a int8 to the logger context.
262func (c Context) Int8(key string, i int8) Context {
263 c.l.context = enc.AppendInt8(enc.AppendKey(c.l.context, key), i)
264 return c
265}
266
267// Ints8 adds the field key with i as a []int8 to the logger context.
268func (c Context) Ints8(key string, i []int8) Context {

Callers

nothing calls this directly

Calls 2

AppendInt8Method · 0.65
AppendKeyMethod · 0.65

Tested by

no test coverage detected