log

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSlogWriter

func NewSlogWriter(ctx context.Context, logLevel slog.Level, defaultBaggage map[string]string, processor func(string) string) io.Writer

NewSlogWriter constructs a new instance for translating between io.Writer and slog.

Types

type CommonLogger

type CommonLogger interface {
	Printf(format string, v ...interface{})
	Println(v ...interface{})
}

CommonLogger represents common logging methods found across multiple libraries and stdlib.

func NewLogAdapter

func NewLogAdapter(ctx context.Context, logLevel slog.Level, defaultBaggage map[string]string) CommonLogger

Jump to

Keyboard shortcuts

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