logr

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StripAnsi

func StripAnsi(str string) string

Types

type LogWriter

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

func NewLogWriter

func NewLogWriter(log logr.Logger) *LogWriter

func (*LogWriter) Write

func (w *LogWriter) Write(p []byte) (n int, err error)

Write implements io.Writer.

type RetryableLogger

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

func NewFromLogger

func NewFromLogger(log logr.Logger) *RetryableLogger

func (*RetryableLogger) Debug

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

Debug implements retryablehttp.LeveledLogger.

func (*RetryableLogger) Error

func (l *RetryableLogger) Error(msg string, keysAndValues ...interface{})

Error implements retryablehttp.LeveledLogger.

func (*RetryableLogger) Info

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

Info implements retryablehttp.LeveledLogger.

func (*RetryableLogger) Warn

func (l *RetryableLogger) Warn(msg string, keysAndValues ...interface{})

Warn implements retryablehttp.LeveledLogger.

Jump to

Keyboard shortcuts

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