logconv

package
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 11, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogrWrapper

func NewLogrWrapper(ctx context.Context, logFunc func(ctx context.Context, level int, msg string, attributes ...any)) logr.Logger

Types

type LogrWrapper

type LogrWrapper struct {
	// contains filtered or unexported fields
}

func (*LogrWrapper) Enabled

func (*LogrWrapper) Enabled(level int) bool

func (*LogrWrapper) Error

func (l *LogrWrapper) Error(err error, msg string, attr ...any)

func (*LogrWrapper) Info

func (l *LogrWrapper) Info(level int, msg string, attr ...any)

func (*LogrWrapper) Init

func (*LogrWrapper) Init(logr.RuntimeInfo)

func (*LogrWrapper) V

func (l *LogrWrapper) V(level int) logr.LogSink

func (*LogrWrapper) WithName

func (l *LogrWrapper) WithName(name string) logr.LogSink

func (*LogrWrapper) WithValues

func (l *LogrWrapper) WithValues(attr ...any) logr.LogSink

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL