log

package
v1.0.17 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: Apache-2.0 Imports: 10 Imported by: 33

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 ...interface{})

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 NSMLogger

func NSMLogger(logger logr.Logger) nsmlog.Logger

NSMLogger return a logger to use for NSM logging.

func New

func New(name, level string) 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