loggerfx

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrArgForFileNotProvided    = errors.New("output file path must be provided for SINK FILE")
	ErrUnexpectedArgForFileType = errors.New("invalid type for the sink FILE => expected string or fmt.Stringer")
	ErrInvalidSinkType          = errors.New("invalid sink type")
)

Functions

func Module

func Module(sink Sink) fx.Option

Types

type Sink

type Sink struct {
	Level       string
	Args        []any
	Type        SinkType
	PrettyPrint bool
}

type SinkType

type SinkType int
const (
	Stdout SinkType = iota
	Stderr
	File
)

Jump to

Keyboard shortcuts

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