Documentation
¶
Index ¶
- func AddToContext(ctx context.Context, origin logr.Logger) context.Context
- func New(origin logr.LogSink) logr.Logger
- func SelectedObjects(ctx context.Context, objectName string, selected, broken int, ...)
- func WithContext(ctx context.Context) logr.Logger
- type Logger
- func (lw *Logger) Enabled(level int) bool
- func (lw *Logger) Error(err error, msg string, keysAndValues ...any)
- func (lw *Logger) Info(level int, msg string, keysAndValues ...any)
- func (lw *Logger) Init(info logr.RuntimeInfo)
- func (lw *Logger) WithName(name string) logr.LogSink
- func (lw *Logger) WithValues(keysAndValues ...any) logr.LogSink
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddToContext ¶
AddToContext adds given logger into context
Types ¶
Click to show internal directories.
Click to hide internal directories.