Type adds the field key with val's type using reflection.
(key string, val interface{})
| 835 | |
| 836 | // Type adds the field key with val's type using reflection. |
| 837 | func (e *Event) Type(key string, val interface{}) *Event { |
| 838 | if e == nil { |
| 839 | return e |
| 840 | } |
| 841 | e.buf = enc.AppendType(enc.AppendKey(e.buf, key), val) |
| 842 | return e |
| 843 | } |
| 844 | |
| 845 | // CallerSkipFrame instructs any future Caller calls to skip the specified number of frames. |
| 846 | // This includes those added via hooks from the context. |