go-ping / ping

ICMP Ping library for Go
MIT License
1.33k stars 345 forks source link

Add Logger interface to avoid logging directly #161

Closed mem closed 3 years ago

mem commented 3 years ago

This is a simple level-based log interface that allows users of the library to control and customize the output for example by providing an standard logger with different settings (timestamps, prefixes, etc).

Closes #16

Signed-off-by: Marcelo E. Magallon marcelo.magallon@grafana.com

mem commented 3 years ago

I was looking at #103 and since I cannot update that PR, I uploaded this one. It's slightly different but the goal is the same.