RawJSON adds already encoded JSON to context. No sanity check is performed on b; it must not contain carriage returns and be valid JSON.
(key string, b []byte)
| 174 | // No sanity check is performed on b; it must not contain carriage returns and |
| 175 | // be valid JSON. |
| 176 | func (c Context) RawJSON(key string, b []byte) Context { |
| 177 | c.l.context = appendJSON(enc.AppendKey(c.l.context, key), b) |
| 178 | return c |
| 179 | } |
| 180 | |
| 181 | // AnErr adds the field key with serialized err to the logger context. |
| 182 | // If err is nil, no field is added. |
nothing calls this directly
no test coverage detected