loggerfx

package
v3.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2025 License: Apache-2.0 Imports: 13 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 ZerologModule

func ZerologModule(sink Sink) fx.Option

Types

type BufferIOConfig added in v3.1.0

type BufferIOConfig struct {
	ChannelSize int
	BufferSize  int
}

type Sink

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

type SinkType

type SinkType int
const (
	Stdout SinkType = iota << 1
	Stderr
	File
	BufferedIO
)

Jump to

Keyboard shortcuts

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