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

Method Bytes

context.go:161–164  ·  view source on GitHub ↗

Bytes adds the field key with val as a []byte to the logger context.

(key string, val []byte)

Source from the content-addressed store, hash-verified

159
160// Bytes adds the field key with val as a []byte to the logger context.
161func (c Context) Bytes(key string, val []byte) Context {
162 c.l.context = enc.AppendBytes(enc.AppendKey(c.l.context, key), val)
163 return c
164}
165
166// Hex adds the field key with val as a hex string to the logger context.
167func (c Context) Hex(key string, val []byte) Context {

Callers

nothing calls this directly

Calls 2

AppendBytesMethod · 0.65
AppendKeyMethod · 0.65

Tested by

no test coverage detected