fanout

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Emitter

type Emitter struct {
	// contains filtered or unexported fields
}

Emitter broadcasts log entries to multiple emitters

func NewEmitter

func NewEmitter(emitters ...core.Emitter) *Emitter

NewEmitter creates a new fanout emitter with the given emitters

func (*Emitter) Emit

func (e *Emitter) Emit(entry *entry.Entry)

Emit broadcasts the entry to all underlying emitters

func (*Emitter) Init

func (e *Emitter) Init() error

Init initializes all underlying emitters

Jump to

Keyboard shortcuts

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