Documentation ¶
Overview ¶
Package logger
Index ¶
- type Logger
- func (c *Logger) Debug(msg string, keysAndValues ...any)
- func (c *Logger) Error(err error, msg string, keysAndValues ...any)
- func (c *Logger) GetLogger() logr.Logger
- func (c *Logger) Info(msg string, keysAndValues ...any)
- func (c *Logger) Trace(msg string, keysAndValues ...any)
- func (c *Logger) Warn(msg string, keysAndValues ...any)
- func (c *Logger) WithName(name string) *Logger
- func (c *Logger) WithValues(keysAndValues ...any) *Logger
- type Wrapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger is a concrete logger using logr underneath.
func FromContext ¶
FromContext retrieves the logr implementation from Context and uses it as underlying logger.
func (*Logger) WithValues ¶
type Wrapper ¶
type Wrapper interface { Info(msg string, keysAndValues ...any) Debug(msg string, keysAndValues ...any) Warn(msg string, keysAndValues ...any) Trace(msg string, keysAndValues ...any) Error(err error, msg string, keysAndValues ...any) WithValues(keysAndValues ...any) *Logger WithName(name string) *Logger GetLogger() logr.Logger }
Wrapper defines a convenient interface to use to log things.
Click to show internal directories.
Click to hide internal directories.