logs

package
v0.0.30 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyValueData

type KeyValueData map[string]any

type Logger

type Logger interface {
	Debugf(format string, args ...interface{})
	Infof(format string, args ...interface{})
	Warnf(format string, args ...interface{})
	Errorf(format string, args ...interface{})
	Debug(format string)
	Info(msg string)
	Warn(msg string)
	Error(msg string)

	WithError(err error) Logger
	WithExtraData(key string, value interface{}) Logger
}

func NewLogger

func NewLogger(ctx context.Context, fields ...KeyValueData) Logger

NewLogger creates a new Logger instance

Jump to

Keyboard shortcuts

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