IPAddr adds the field key with ip as a net.IP IPv4 or IPv6 Address to the event
(key string, ip net.IP)
| 875 | |
| 876 | // IPAddr adds the field key with ip as a net.IP IPv4 or IPv6 Address to the event |
| 877 | func (e *Event) IPAddr(key string, ip net.IP) *Event { |
| 878 | if e == nil { |
| 879 | return e |
| 880 | } |
| 881 | e.buf = enc.AppendIPAddr(enc.AppendKey(e.buf, key), ip) |
| 882 | return e |
| 883 | } |
| 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 { |