Bool adds the field key with val as a bool to the *Event context.
(key string, b bool)
| 516 | |
| 517 | // Bool adds the field key with val as a bool to the *Event context. |
| 518 | func (e *Event) Bool(key string, b bool) *Event { |
| 519 | if e == nil { |
| 520 | return e |
| 521 | } |
| 522 | e.buf = enc.AppendBool(enc.AppendKey(e.buf, key), b) |
| 523 | return e |
| 524 | } |
| 525 | |
| 526 | // Bools adds the field key with val as a []bool to the *Event context. |
| 527 | func (e *Event) Bools(key string, b []bool) *Event { |