logr

package
v0.0.0-...-4760111 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTestLogger

func NewTestLogger(t T) logr.Logger

Types

type T

type T interface {
	Logf(format string, args ...interface{})
}

type TestLogger

type TestLogger struct {
	T
}

TestLogger is a logr.Logger that prints through a testing.T object. Only error logs will have any effect.

func (TestLogger) Enabled

func (_ TestLogger) Enabled() bool

func (TestLogger) Error

func (log TestLogger) Error(err error, msg string, args ...interface{})

func (TestLogger) Info

func (_ TestLogger) Info(_ string, _ ...interface{})

func (TestLogger) V

func (log TestLogger) V(v int) logr.InfoLogger

func (TestLogger) WithName

func (log TestLogger) WithName(_ string) logr.Logger

func (TestLogger) WithValues

func (log TestLogger) WithValues(_ ...interface{}) logr.Logger

Jump to

Keyboard shortcuts

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