clog

package
v1.0.0-rc5 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LEVEL_INFO        = 0
	LEVEL_DEBUG       = 1
	LEVEL_DEBUG_ALL   = 2
	LEVEL_OBJECT_DUMP = 5
)

Variables

This section is empty.

Functions

func IntoContext

func IntoContext(ctx context.Context, logger *Logger) context.Context

Types

type Logger

type Logger struct {
	logr.Logger
}

func FromContext

func FromContext(ctx context.Context) *Logger

func NewLogger

func NewLogger(log logr.Logger) *Logger

func (*Logger) Debug

func (l *Logger) Debug() *Logger

func (*Logger) DebugAll

func (l *Logger) DebugAll() *Logger

func (*Logger) DumpObject

func (l *Logger) DumpObject(scheme *apiruntime.Scheme, obj NamedObject, msg string)

func (*Logger) Enabled

func (l *Logger) Enabled() bool

func (*Logger) Error

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

func (*Logger) Info

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

func (*Logger) PrintObjectDiff

func (l *Logger) PrintObjectDiff(x, y NamedObject)

func (*Logger) WithCaller

func (l *Logger) WithCaller() *Logger

func (*Logger) WithName

func (l *Logger) WithName(name string) *Logger

func (*Logger) WithValues

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

type NamedObject

type NamedObject interface {
	GetName() string
	DeepCopyObject() apiruntime.Object
}

Jump to

Keyboard shortcuts

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