log

package
v1.2.2 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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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