Skip to content

How to wrap an existing core? #32

@afirth

Description

@afirth

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions