log

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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 holds a very bare bones minimal implementation of telemetry.Logging. It is used by run.Group when not wired up with an explicit Logging implementation.

func (*Logger) Clone added in v0.1.2

func (l *Logger) Clone() telemetry.Logger

func (*Logger) Context

func (l *Logger) Context(_ context.Context) telemetry.Logger

func (*Logger) Debug

func (l *Logger) Debug(msg string, keyValuePairs ...interface{})

func (*Logger) Error

func (l *Logger) Error(msg string, err error, keyValuePairs ...interface{})

func (*Logger) Info

func (l *Logger) Info(msg string, keyValuePairs ...interface{})

func (*Logger) KeyValuesToContext

func (l *Logger) KeyValuesToContext(ctx context.Context, _ ...interface{}) context.Context

func (*Logger) Level added in v0.1.2

func (l *Logger) Level() telemetry.Level

func (*Logger) Metric

func (l *Logger) Metric(_ telemetry.Metric) telemetry.Logger

func (*Logger) SetLevel added in v0.1.2

func (l *Logger) SetLevel(telemetry.Level)

func (Logger) With

func (l Logger) With(keyValuePairs ...interface{}) telemetry.Logger

Jump to

Keyboard shortcuts

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