zapdriver
zapdriver copied to clipboard
How to wrap an existing core?
For example https://github.com/kubernetes-sigs/controller-runtime/tree/master/pkg/log/zap returns a zap Log with a custom encoder. I can call log.Core() on it, but WrapCore uses the internal core type rather than a zapcore.Core
What I'd like to do is have the controller-runtime log (which is part of kubebuilder among others) wrapped in zapdriver.
Maybe I'm going about this all wrong...
Thanks for the package!