log

package
v1.1.5-0...-67e557e Latest Latest
Warning

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

Go to latest
Published: May 27, 2023 License: MIT Imports: 6 Imported by: 0

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