logging

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: Apache-2.0 Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithLogger deprecated

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

WithLogger returns a new context with the provided logger.

Deprecated: Importers need their own copy. This package will be removed after its last tag.

Types

type Logger deprecated

type Logger interface {
	Printf(format string, v ...interface{})
	Warnf(format string, v ...interface{})
	Errorf(format string, v ...interface{})
}

Deprecated: Importers need their own copy. This package will be removed after its last tag.

func FromContext deprecated

func FromContext(ctx context.Context) (Logger, error)

FromContext retrieves the current logger from the context. If no logger is available, a new default logger gets returned.

Deprecated: Importers need their own copy. This package will be removed after its last tag.

func NewDefaultLogger deprecated

func NewDefaultLogger(prefix string, options ...Option) Logger

Deprecated: Importers need their own copy. This package will be removed after its last tag.

type Option deprecated

type Option func(l *defaultLogger)

Deprecated: Importers need their own copy. This package will be removed after its last tag.

func WithOut deprecated

func WithOut(out io.Writer) Option

Deprecated: Importers need their own copy. This package will be removed after its last tag.

Jump to

Keyboard shortcuts

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