stdout

package
v0.29.1 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 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 StdoutConfig

type StdoutConfig struct {
	helper.OutputConfig `yaml:",inline"`
}

StdoutConfig is the configuration of the Stdout operator

func NewStdoutConfig

func NewStdoutConfig(operatorID string) *StdoutConfig

NewStdoutConfig creates a new stdout config with default values

func (StdoutConfig) Build

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

Build will build a stdout operator.

type StdoutOperator

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

StdoutOperator is an operator that logs entries using stdout.

func (*StdoutOperator) Process

func (o *StdoutOperator) 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