Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Log is the base logger used by kubebuilder. It delegates // to another logr.Logger. You *must* call SetLogger to // get any actual logging. Log = logf.Log // KBLog is a base parent logger. KBLog = logf.KBLog // SetLogger sets a concrete logging implementation for all deferred Loggers. SetLogger = logf.SetLogger )
Functions ¶
func RawZapLoggerTo ¶
RawZapLoggerTo returns a new zap.Logger configured with KubeAwareEncoder which logs to a given destination
Types ¶
type KubeAwareEncoder ¶
type KubeAwareEncoder = logf.KubeAwareEncoder
KubeAwareEncoder is a Kubernetes-aware Zap Encoder. Instead of trying to force Kubernetes objects to implement ObjectMarshaller, we just implement a wrapper around a normal ObjectMarshaller that checks for Kubernetes objects.
Click to show internal directories.
Click to hide internal directories.