log

package
v2.1.4 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2024 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args struct {
	Verbose bool
	Writer  io.Writer
}

type Logger

type Logger interface {
	Verbose() *zerolog.Event
	Log() *zerolog.Event
	Error() *zerolog.Event
}

func NewLogger

func NewLogger(args Args) Logger

type Writer

type Writer interface {
	Write(p []byte) (n int, err error)
	WriteLevel(level zerolog.Level, p []byte) (n int, err error)
}

func NewWriter

func NewWriter() Writer

Jump to

Keyboard shortcuts

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