RawJSON adds already encoded JSON to the log line under key. No sanity check is performed on b; it must not contain carriage returns and be valid JSON.
(key string, b []byte)
| 398 | // No sanity check is performed on b; it must not contain carriage returns and |
| 399 | // be valid JSON. |
| 400 | func (e *Event) RawJSON(key string, b []byte) *Event { |
| 401 | if e == nil { |
| 402 | return e |
| 403 | } |
| 404 | e.buf = appendJSON(enc.AppendKey(e.buf, key), b) |
| 405 | return e |
| 406 | } |
| 407 | |
| 408 | // RawCBOR adds already encoded CBOR to the log line under key. |
| 409 | // |