log

package
v0.0.0-...-265eb5a Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Logger logr.Logger

Logger The global logger.

Functions

func Fatal

func Fatal(logger logr.Logger, msg string, keysAndValues ...any)

Fatal log the message using the passed logger and terminate.

func FromContextOrGlobal

func FromContextOrGlobal(ctx context.Context) logr.Logger

FromContextOrGlobal return a logger from the passed context or the global logger.

func New

func New(name string, level int) logr.Logger

New returns a new logger. The level may be "DEBUG" (V(1)) or "TRACE" (V(2)), any other string (e.g. "") is interpreted as "INFO" (V(0)). On first call the global Logger is set.

Types

This section is empty.

Jump to

Keyboard shortcuts

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