log

package
v1.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 17, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ControllerLogConstructor

func ControllerLogConstructor(
	controllerName string,
	object runtime.Object,
	scheme *runtime.Scheme,
) func(request *reconcile.Request) logr.Logger

ControllerLogConstructor returns the controller-runtime log constructor for a controller. It is similar to the default constructor, but doesn't add duplicated values - like separate namespace and name values - to reduce log line length.

func FromContextOrDefault

func FromContextOrDefault(ctx context.Context) logr.Logger

FromContextOrDefault returns a Logger from ctx. If no Logger is found, this returns the default controller-runtime logger so we at least don't accidentally discard logs. Prefer using this over logr.FromContextOrDiscard().

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL