logger

package
v0.0.0-...-b641f02 Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Overview

Package logger GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE

Index

Constants

View Source
const LogAttrSpanName = "$$spanName"

Variables

View Source
var TracerContext = contextx.New[trace.Tracer]()

Functions

This section is empty.

Types

type Exporter

type Exporter interface {
	sdklog.LogExporter
	sdktrace.SpanExporter

	Run(context.Context, func(ctx context.Context) error) error
}

func New

func New() Exporter

type Logger

type Logger struct {
	Enabled logr.Level
	// contains filtered or unexported fields
}

func (*Logger) Debug

func (l *Logger) Debug(format string, args ...any)

func (*Logger) End

func (l *Logger) End()

func (*Logger) Error

func (l *Logger) Error(err error)

func (*Logger) Info

func (l *Logger) Info(format string, args ...any)

func (Logger) RuntimeDoc

func (v Logger) RuntimeDoc(names ...string) ([]string, bool)

func (*Logger) Start

func (l *Logger) Start(ctx context.Context, name string, keyAndValues ...any) (context.Context, logr.Logger)

func (*Logger) Warn

func (l *Logger) Warn(err error)

func (*Logger) WithValues

func (l *Logger) WithValues(keyAndValues ...any) logr.Logger

type TaskRecorderGetter

type TaskRecorderGetter = func() *progrock.TaskRecorder

Jump to

Keyboard shortcuts

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