log

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug[T any](log logr.Logger, msg string, rawObj T, keysAndValues ...interface{})

Debug logs a message at the debug level.

func Error

func Error[T any](log logr.Logger, err error, msg string, rawObj T, keysAndValues ...interface{})

Error logs a message at the error level.

func GetLogger

func GetLogger(ctx context.Context, controllerName string, developmentMode bool) logr.Logger

GetLogger returns a configured instance of logger.

func Info

func Info[T any](log logr.Logger, msg string, rawObj T, keysAndValues ...interface{})

Info logs a message at the info level.

func Trace

func Trace[T any](log logr.Logger, msg string, rawObj T, keysAndValues ...interface{})

Trace logs a message at the trace level.

Types

This section is empty.

Jump to

Keyboard shortcuts

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