zapdriver icon indicating copy to clipboard operation
zapdriver copied to clipboard

How to wrap an existing core?

Open afirth opened this issue 5 years ago • 0 comments

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!

afirth avatar Jun 23 '20 14:06 afirth