Documentation ¶
Overview ¶
Package logr provides Logur integration for Logr interface.
Index ¶
- func New(logger logur.Logger) logr.Logger
- type Logger
- func (l *Logger) Enabled(level int) bool
- func (l *Logger) Error(err error, msg string, keysAndValues ...interface{})
- func (l *Logger) Info(level int, msg string, keysAndValues ...interface{})
- func (l *Logger) Init(info logr.RuntimeInfo)
- func (l *Logger) WithName(name string) logr.LogSink
- func (l *Logger) WithValues(keysAndValues ...interface{}) logr.LogSink
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger is a Logr logger.
func (*Logger) Init ¶ added in v0.5.0
func (l *Logger) Init(info logr.RuntimeInfo)
func (*Logger) WithValues ¶
WithValues adds some key-value pairs of context to a logger.
Click to show internal directories.
Click to hide internal directories.