IPAddrs adds the field key with ip as a net.IP array of IPv4 or IPv6 Address to the event
(key string, ip []net.IP)
| 884 | |
| 885 | // IPAddrs adds the field key with ip as a net.IP array of IPv4 or IPv6 Address to the event |
| 886 | func (e *Event) IPAddrs(key string, ip []net.IP) *Event { |
| 887 | if e == nil { |
| 888 | return e |
| 889 | } |
| 890 | e.buf = enc.AppendIPAddrs(enc.AppendKey(e.buf, key), ip) |
| 891 | return e |
| 892 | } |
| 893 | |
| 894 | // IPPrefix adds the field key with pfx as a net.IPNet IPv4 or IPv6 Prefix (address and mask) to the event |
| 895 | func (e *Event) IPPrefix(key string, pfx net.IPNet) *Event { |