logr

package
v0.4.7 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogger

func NewLogger(name string, f ...(func(l *defaultLogger) *defaultLogger)) logr.Logger

func OptionColor

func OptionColor(l *defaultLogger) *defaultLogger

func OptionNoOutput

func OptionNoOutput(l *defaultLogger) *defaultLogger

func OptionNoPrefix

func OptionNoPrefix(l *defaultLogger) *defaultLogger

Types

type MockLogger

type MockLogger struct {
	sync.Mutex
	Logs []string
}

func (*MockLogger) Enabled

func (l *MockLogger) Enabled() bool

func (*MockLogger) Error

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

func (*MockLogger) Info

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

func (*MockLogger) V

func (l *MockLogger) V(level int) logr.Logger

func (*MockLogger) WithName

func (c *MockLogger) WithName(name string) logr.Logger

func (*MockLogger) WithValues

func (c *MockLogger) WithValues(keysAndValues ...interface{}) logr.Logger

Jump to

Keyboard shortcuts

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