log

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debugf

func Debugf(ctx context.Context, format string, args ...any)

Debugf logs a debug message.

func Errorf

func Errorf(ctx context.Context, format string, args ...any)

Errorf logs an error message.

func Infof

func Infof(ctx context.Context, format string, args ...any)

Infof logs an info message.

func SetLogger

func SetLogger(l Logger)

SetLogger changes the default logger. This must be called very first, before interacting with rest of the martian package. Changing it at runtime is not supported.

Types

type Logger added in v1.1.0

type Logger interface {
	Infof(ctx context.Context, format string, args ...any)
	Debugf(ctx context.Context, format string, args ...any)
	Errorf(ctx context.Context, format string, args ...any)
}

Jump to

Keyboard shortcuts

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