sdk-go
sdk-go copied to clipboard
Feature request: Use logr instead of uber/zap directly
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.
I like the idea!
I think it's become even more relevant with the release of the slog.
https://go.dev/blog/slog
Using slog would require all users (beginning with this release) to use Go 1.21. Not sure if we should enforce this?