RawCBOR adds already encoded CBOR to the log line under key. No sanity check is performed on b Note: The full featureset of CBOR is supported as data will not be mapped to json but stored as data-url
(key string, b []byte)
| 410 | // No sanity check is performed on b |
| 411 | // Note: The full featureset of CBOR is supported as data will not be mapped to json but stored as data-url |
| 412 | func (e *Event) RawCBOR(key string, b []byte) *Event { |
| 413 | if e == nil { |
| 414 | return e |
| 415 | } |
| 416 | e.buf = appendCBOR(enc.AppendKey(e.buf, key), b) |
| 417 | return e |
| 418 | } |
| 419 | |
| 420 | // AnErr adds the field key with serialized err to the *Event context. |
| 421 | // If err is nil, no field is added. |