stdout

package
v0.59.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2022 License: Apache-2.0 Imports: 9 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 `yaml:",inline"`
}

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

func (c Config) Build(logger *zap.SugaredLogger) (operator.Operator, error)

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(ctx 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