logger

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	Warn  = 0
	Info  = 1
	Debug = 2
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct{}

Logger is the provider's default logger logs using the standard log package on error, all other logs are no-ops

func (Logger) Enabled

func (l Logger) Enabled(level int) bool

func (Logger) Error

func (l Logger) Error(err error, msg string, keysAndValues ...interface{})

func (Logger) Info

func (l Logger) Info(level int, msg string, keysAndValues ...interface{})

func (Logger) Init

func (l Logger) Init(info logr.RuntimeInfo)

func (Logger) WithName

func (l Logger) WithName(name string) logr.LogSink

func (Logger) WithValues

func (l Logger) WithValues(keysAndValues ...interface{}) logr.LogSink

Jump to

Keyboard shortcuts

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