logging

package
v0.0.0-...-a53e0fd Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event interface {
	Msg(s string) (n int, err error)
	Msgf(s string, a ...any) (n int, err error)
}

type I

type I interface {
	Debug() Event
	Info() Event
	Error() Event
	Fatal() Event
	Writer() io.Writer
}

func New

func New(opts ...Options) I

type Level

type Level int
const (
	DEBUG Level = iota
	INFO
	ERROR
	CRITICAL
	FATAL
)

func (Level) String

func (l Level) String() string

type Options

type Options struct {
	Level  Level
	Writer io.Writer
}

Jump to

Keyboard shortcuts

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