logger

package
v3.9.4-alpha Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TRACE = Level(iota)
	DEBUG
	INFO
	WARN
	ERROR
	FATAL

	QUIET
)

Variables

This section is empty.

Functions

func New

func New(opts ...Option) *logger

Types

type Level

type Level int

func FromString

func FromString(l string) Level

func (Level) String

func (l Level) String() string

type Option added in v3.3.0

type Option func(l *logger)

func WithErrWriter added in v3.5.0

func WithErrWriter(err io.Writer) Option

func WithExternalLogger added in v3.5.0

func WithExternalLogger(external log.Logger) Option

func WithMinLevel added in v3.3.0

func WithMinLevel(level Level) Option

func WithNamespace added in v3.3.0

func WithNamespace(namespace string) Option

func WithNoColor added in v3.3.0

func WithNoColor(b bool) Option

func WithOutWriter added in v3.5.0

func WithOutWriter(out io.Writer) Option

Jump to

Keyboard shortcuts

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