Question: Logging flexibility
jondot opened this issue · 0 comments
jondot commented
Hi,
I have noticed StatsdSink (and probably others) use log
. Any idea how to make them write to my own systems' logging infra? (I am currently using logrus). I'd like to detect when UDP cannot send or there's any errors, and for that to happen I'm counting on logrus to log errors directly to an alerted log receiver.
Of course, my only thought right now is to localize and duplicate StatsdSink and swap out references to log
with my own logger.
Thanks