# Packages

Package zap contains helpers for setting up a new logr.Logger instance using the Zap logging framework.

# Functions

FromContext returns a logger with predefined values from a context.Context.
IntoContext takes a context and sets the logger as one of its values.
NewKubeAPIWarningLogger returns an implementation of rest.WarningHandler that logs warnings with code = 299 to the provided logr.Logger.
SetLogger sets a concrete logging implementation for all deferred Loggers.

# Variables

Log is the base logger used by kubebuilder.

# Structs

KubeAPIWarningLogger is a wrapper around a provided logr.Logger that implements the rest.WarningHandler interface.
KubeAPIWarningLoggerOptions controls the behavior of a rest.WarningHandler constructed using NewKubeAPIWarningLogger().
NullLogSink is a logr.Logger that does nothing.