Documentation ¶
Index ¶
- Constants
- func Diff(x, y interface{}) string
- func IntoContext(ctx context.Context, logger *Logger) context.Context
- func LogrIntoContext(ctx context.Context, logger logr.Logger) context.Context
- func PrintObjectDiff(out io.Writer, x, y interface{})
- type Logger
- func (l *Logger) Debug() *Logger
- func (l *Logger) DebugAll() *Logger
- func (l *Logger) DumpObject(scheme *apiruntime.Scheme, obj NamedObject, msg string)
- func (l *Logger) Enabled() bool
- func (l *Logger) Error(err error, msg string, keysAndValues ...interface{})
- func (l *Logger) Info(msg string, keysAndValues ...interface{})
- func (l *Logger) PrintObjectDiff(x, y interface{})
- func (l *Logger) WithCaller() *Logger
- func (l *Logger) WithName(name string) *Logger
- func (l *Logger) WithValues(keysAndValues ...interface{}) *Logger
- type NamedObject
Constants ¶
View Source
const ( LEVEL_INFO = 0 LEVEL_DEBUG = 1 LEVEL_DEBUG_ALL = 2 )
Variables ¶
This section is empty.
Functions ¶
func LogrIntoContext ¶
func PrintObjectDiff ¶
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func FromContext ¶
func (*Logger) DumpObject ¶
func (l *Logger) DumpObject(scheme *apiruntime.Scheme, obj NamedObject, msg string)
func (*Logger) PrintObjectDiff ¶
func (l *Logger) PrintObjectDiff(x, y interface{})
func (*Logger) WithCaller ¶
func (*Logger) WithValues ¶
type NamedObject ¶
type NamedObject interface { GetName() string DeepCopyObject() apiruntime.Object }
Click to show internal directories.
Click to hide internal directories.