logger

package
v4.71.5 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: MIT Imports: 9 Imported by: 31

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddOpenTelemetryToDefaultLogger added in v4.69.1

func AddOpenTelemetryToDefaultLogger(telemetryApp telemetry.Service)

func ErrorField added in v4.69.5

func ErrorField(err error) errorField

func FatalfOnErr added in v4.70.1

func FatalfOnErr(ctx context.Context, err error, msg string, args ...slog.Attr)

func Init added in v4.63.0

func Init(config *Config)

Types

type Config

type Config struct {
	Level      string
	TimeKey    string
	LevelKey   string
	MessageKey string
	JSON       bool
}

func Flags

func Flags(fs *flag.FlagSet, prefix string, overrides ...flags.Override) *Config

type StackTracer added in v4.70.3

type StackTracer interface {
	StackTrace() string
}

type UnwrapJoin added in v4.70.3

type UnwrapJoin interface {
	Unwrap() []error
}

Interface to unwrap joined errors.Join https://pkg.go.dev/errors#Join

Jump to

Keyboard shortcuts

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