logger

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CancelFunc

type CancelFunc = func()

type Fields

type Fields = map[string]any

type Logger

type Logger interface {
	DebugMsg(ctx context.Context, msg string, fields Fields)
	InfoMsg(ctx context.Context, msg string, fields Fields)
	WarningMsg(ctx context.Context, msg string, fields Fields)
	ErrorMsg(ctx context.Context, msg string, fields Fields)
	FatalMsg(ctx context.Context, msg string, fields Fields)
	PanicMsg(ctx context.Context, msg string, fields Fields)

	Debug(ctx context.Context, err error, fields Fields) error
	Info(ctx context.Context, err error, fields Fields) error
	Warning(ctx context.Context, err error, fields Fields) error
	Error(ctx context.Context, err error, fields Fields) error
	Fatal(ctx context.Context, err error, fields Fields) error
	Panic(ctx context.Context, err error, fields Fields) error
}

type Outputer

type Outputer interface {
	io.Closer
	io.Writer
}

Jump to

Keyboard shortcuts

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