kubernetes/vendor/k8s.io/klog/v2/ktesting/testinglogger.go

type TL

type NopTL

func (n NopTL) Helper()            {}

func (n NopTL) Log(...interface{}

var _

type BufferTL

func (n *BufferTL) Helper() {}

func (n *BufferTL) Log(args ...interface{}

var _

// NewLogger constructs a new logger for the given test interface.
//
// Beware that testing.T does not support logging after the test that
// it was created for has completed. If a test leaks goroutines
// and those goroutines log something after test completion,
// that output will be printed via the global klog logger with
// `<test name> leaked goroutine` as prefix.
//
// Verbosity can be modified at any time through the Config.V and
// Config.VModule API.
func NewLogger(t TL, c *Config) logr.Logger {}

type Buffer

type Log

// DeepCopy returns a copy of the log. The error instance and key/value
// pairs remain shared.
func (l Log) DeepCopy() Log {}

type LogEntry

type LogType

const LogError

const LogInfo

type Underlier

type logBuffer

func (b *logBuffer) String() string {}

func (b *logBuffer) Data() Log {}

type tloggerShared

const stopGracePeriod

func (ls *tloggerShared) stop() {}

type tlogger

// fallbackLogger is called while l.shared.mutex is locked and after it has
// been determined that the original testing.TB is no longer usable.
func (l tlogger) fallbackLogger() logr.Logger {}

func (l tlogger) Init(info logr.RuntimeInfo) {}

func (l tlogger) GetCallStackHelper() func() {}

func (l tlogger) Info(level int, msg string, kvList ...interface{}

func (l tlogger) Enabled(level int) bool {}

func (l tlogger) Error(err error, msg string, kvList ...interface{}

func (l tlogger) log(what LogType, msg string, level int, buf *buffer.Buffer, err error, kvList []interface{}

// WithName returns a new logr.Logger with the specified name appended.  klogr
// uses '/' characters to separate name elements.  Callers should not pass '/'
// in the provided name string, but this library does not actually enforce that.
func (l tlogger) WithName(name string) logr.LogSink {}

func (l tlogger) WithValues(kvList ...interface{}

func (l tlogger) GetUnderlying() TL {}

func (l tlogger) GetBuffer() Buffer {}

var _

var _

var _