Int adds the field key with i as a int to the *Event context.
(key string, i int)
| 534 | |
| 535 | // Int adds the field key with i as a int to the *Event context. |
| 536 | func (e *Event) Int(key string, i int) *Event { |
| 537 | if e == nil { |
| 538 | return e |
| 539 | } |
| 540 | e.buf = enc.AppendInt(enc.AppendKey(e.buf, key), i) |
| 541 | return e |
| 542 | } |
| 543 | |
| 544 | // Ints adds the field key with i as a []int to the *Event context. |
| 545 | func (e *Event) Ints(key string, i []int) *Event { |