Hex adds the field key with val as a hex string to the logger context.
(key string, val []byte)
| 165 | |
| 166 | // Hex adds the field key with val as a hex string to the logger context. |
| 167 | func (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 | // |