Documentation ¶
Index ¶
- Constants
- type Logger
- func (l Logger) Enabled() bool
- func (l Logger) Error(err error, message string, kvpair ...interface{})
- func (l Logger) Info(message string, kvpair ...interface{})
- func (l *Logger) Reset()
- func (l *Logger) SetValues(kvpair ...interface{})
- func (l Logger) Trace(err error, kvpair ...interface{})
- func (l Logger) V(level int) logr.InfoLogger
- func (l Logger) WithName(name string) logr.Logger
- func (l Logger) WithValues(kvpair ...interface{}) logr.Logger
Constants ¶
View Source
const ( Stack = "stacktrace" Error = "error" None = "" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
Logger Delegates functionality to the wrapped `Real` logger. Provides:
- Provides a `Trace()` method for convenience and brevity.
- Prevent spamming the log with `Conflict` errors.
- Handles wrapped errors.
func (*Logger) Reset ¶
func (l *Logger) Reset()
Reset the logger. Updates the generated correlation suffix in the name.
func (Logger) WithValues ¶
Get logger with values.
Click to show internal directories.
Click to hide internal directories.