stdout

package module
v0.0.0-...-fa9391f Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2020 License: Apache-2.0 Imports: 8 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

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