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

Method Hex

context.go:167–170  ·  view source on GitHub ↗

Hex adds the field key with val as a hex string to the logger context.

(key string, val []byte)

Source from the content-addressed store, hash-verified

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 {
168 c.l.context = enc.AppendHex(enc.AppendKey(c.l.context, key), val)
169 return c
170}
171
172// RawJSON adds already encoded JSON to context.
173//

Callers

nothing calls this directly

Calls 2

AppendHexMethod · 0.65
AppendKeyMethod · 0.65

Tested by

no test coverage detected