log

package
v0.0.0-...-599887d Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: Apache-2.0 Imports: 4 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(msg string, keysAndValues ...interface{})

Debug --.

func Debugf

func Debugf(format string, args ...interface{})

Debugf --.

func Error

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

Error --.

func Errorf

func Errorf(err error, format string, args ...interface{})

Errorf --.

func Info

func Info(msg string, keysAndValues ...interface{})

Info --.

func Infof

func Infof(format string, args ...interface{})

Infof --.

Types

type Injectable

type Injectable interface {
	InjectLogger(Logger)
}

Injectable identifies objects that can receive a Logger.

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

Logger --.

var Log Logger

Log --.

func WithName

func WithName(name string) Logger

WithName --.

func WithValues

func WithValues(keysAndValues ...interface{}) Logger

WithValues --.

func (Logger) AsLogger

func (l Logger) AsLogger() logr.Logger

AsLogger --.

func (Logger) Debug

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

Debug --.

func (Logger) Debugf

func (l Logger) Debugf(format string, args ...interface{})

Debugf --.

func (Logger) Error

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

Error --.

func (Logger) Errorf

func (l Logger) Errorf(err error, format string, args ...interface{})

Errorf --.

func (Logger) Info

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

Info --.

func (Logger) Infof

func (l Logger) Infof(format string, args ...interface{})

Infof --.

func (Logger) WithName

func (l Logger) WithName(name string) Logger

WithName --.

func (Logger) WithValues

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

WithValues --.

Jump to

Keyboard shortcuts

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