Documentation ¶
Index ¶
- func AddToContext(ctx context.Context, origin logr.Logger) context.Context
- func New(origin logr.LogSink) logr.Logger
- 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 ...interface{})
- func (lw *Logger) Info(level int, msg string, keysAndValues ...interface{})
- func (lw *Logger) Init(info logr.RuntimeInfo)
- func (lw *Logger) WithName(name string) logr.LogSink
- func (lw *Logger) WithValues(keysAndValues ...interface{}) logr.LogSink
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddToContext ¶ added in v0.42.0
AddToContext adds given logger into context
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger wraps logger methods with metrics
func (*Logger) WithValues ¶
WithValues implements logr.Logger
Click to show internal directories.
Click to hide internal directories.