logr

package
v0.9.63 Latest Latest
Warning

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

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

Documentation

Overview

Package logr adapts an xlog.KeyValueLogger to the go-logr LogSink interface so that controller-runtime logs through the same formatter as the rest of the process.

mgr, err := ctrl.NewManager(cfg, ctrl.Options{Logger: logr.New(logger)})

Info lines are logged at xlog.INFO for verbosity 0, TRACE for 1 and DEBUG for 2 and above; Error lines at xlog.ERROR with an err key. Names from WithName are logged under the src key. The sink is immutable: WithValues and WithName return new sinks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(logger xlog.KeyValueLogger) logr.Logger

New returns logr.Logger

Types

This section is empty.

Jump to

Keyboard shortcuts

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