Documentation ¶
Index ¶
- Constants
- func IntoContext(ctx context.Context, logger *Logger) context.Context
- 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 NamedObject)
- 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 LEVEL_OBJECT_DUMP = 5 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Logger ¶
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 NamedObject)
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.