Documentation
¶
Overview ¶
logconv provides a logr.Logger implementation based on a simple context-aware, structured logFunc
This is required as the ctrl-runtime lib has specified the logr.Logger as its log interface
Index ¶
- func NewLogrWrapper(ctx context.Context, ...) logr.Logger
- type LogrWrapper
- func (*LogrWrapper) Enabled(level int) bool
- func (l *LogrWrapper) Error(err error, msg string, attr ...any)
- func (l *LogrWrapper) Info(level int, msg string, attr ...any)
- func (*LogrWrapper) Init(logr.RuntimeInfo)
- func (l *LogrWrapper) V(level int) logr.LogSink
- func (l *LogrWrapper) WithName(name string) logr.LogSink
- func (l *LogrWrapper) WithValues(attr ...any) logr.LogSink
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LogrWrapper ¶
type LogrWrapper struct {
// contains filtered or unexported fields
}
func (*LogrWrapper) Enabled ¶
func (*LogrWrapper) Enabled(level int) bool
func (*LogrWrapper) Init ¶
func (*LogrWrapper) Init(logr.RuntimeInfo)
func (*LogrWrapper) WithValues ¶
func (l *LogrWrapper) WithValues(attr ...any) logr.LogSink
Click to show internal directories.
Click to hide internal directories.