sdk-go icon indicating copy to clipboard operation
sdk-go copied to clipboard

Feature request: Use logr instead of uber/zap directly

Open tamalsaha opened this issue 4 years ago • 5 comments
trafficstars

We are using cloudevents SDK from our k8s projects. It would be nice if we could just use one logging library. What do you think about using https://github.com/go-logr/logr as the logger? Then users can plugin zap (https://github.com/go-logr/zapr) or klog (https://github.com/kubernetes/klog/tree/main/klogr) or anything else they like to use as the underlying logging library.

tamalsaha avatar Jun 08 '21 20:06 tamalsaha

I like the idea!

n3wscott avatar Jul 15 '21 16:07 n3wscott

I think it's become even more relevant with the release of the slog.

https://go.dev/blog/slog

batazor avatar Oct 14 '23 19:10 batazor

Using slog would require all users (beginning with this release) to use Go 1.21. Not sure if we should enforce this?

embano1 avatar Oct 15 '23 07:10 embano1