logger

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	logr.Logger
}

func GetLogger

func GetLogger(name string) Logger

GetLogger returns a custom named logger

func GetLoggerWithNamespacedName added in v0.4.0

func GetLoggerWithNamespacedName(name string, key types.NamespacedName) Logger

func GetLoggerWithResource added in v0.4.0

func GetLoggerWithResource(name string, res resource.KubernetesResource) Logger

GetLoggerWithResource returns a custom named logger with a resource's namespace and name as fields

func (*Logger) Debug added in v0.4.0

func (l *Logger) Debug(message string, keysAndValues ...interface{})

func (*Logger) Warn added in v0.4.0

func (l *Logger) Warn(message string, keysAndValues ...interface{})

Warn alternative for info format with sprintf and WARN named.

Jump to

Keyboard shortcuts

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