log

package
v0.0.0-...-211626f Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Debug() Printer
	Info() Printer
	Warn() Printer
	Error() Printer
	Prefix(prefix string) Logger
}

func NewDefaultLogger

func NewDefaultLogger() Logger

func NewDiscardLogger

func NewDiscardLogger() Logger

type Printer

type Printer interface {
	Print(v ...any)
	Printf(format string, v ...any)
	Println(v ...any)
}

Copies methods of standard library log.

Jump to

Keyboard shortcuts

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