logging

package
v1.12.4 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithContext

func WithContext(ctx context.Context, logger Logger) context.Context

Types

type Logger

type Logger interface {
	WithFields(fields map[string]any) Logger
	WithField(field string, value any) Logger

	Error(msg any)
	Warn(msg any)
	Info(msg any)
	Debug(msg any)
	Trace(msg any)
}

func FromContext

func FromContext(ctx context.Context) Logger

func NewNoOpLogger

func NewNoOpLogger() Logger

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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