stdout

package
v0.101.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Stdout io.Writer = os.Stdout

Stdout is a global handle to standard output

Functions

This section is empty.

Types

type Config added in v0.53.0

type Config struct {
	helper.OutputConfig `mapstructure:",squash"`
}

Config is the configuration of the Stdout operator

func NewConfig added in v0.53.0

func NewConfig(operatorID string) *Config

NewConfig creates a new stdout config with default values

func (Config) Build added in v0.53.0

Build will build a stdout operator.

type Output added in v0.53.0

type Output struct {
	helper.OutputOperator
	// contains filtered or unexported fields
}

Output is an operator that logs entries using stdout.

func (*Output) Process added in v0.53.0

func (o *Output) Process(_ context.Context, entry *entry.Entry) error

Process will log entries received.

Jump to

Keyboard shortcuts

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