IPAddr adds adds the field key with ip as a net.IP IPv4 or IPv6 Address to the context
(key string, ip net.IP)
| 506 | |
| 507 | // IPAddr adds adds the field key with ip as a net.IP IPv4 or IPv6 Address to the context |
| 508 | func (c Context) IPAddr(key string, ip net.IP) Context { |
| 509 | c.l.context = enc.AppendIPAddr(enc.AppendKey(c.l.context, key), ip) |
| 510 | return c |
| 511 | } |
| 512 | |
| 513 | // IPAddrs adds the field key with ip as a []net.IP array of IPv4 or IPv6 Address to the context |
| 514 | func (c Context) IPAddrs(key string, ip []net.IP) Context { |
nothing calls this directly
no test coverage detected