output

package
v0.0.0-...-424d171 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package output provides basic interface for log output. It's primary job is to wrap specific implementations of log outputs and provide a shared public interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(name string, factory Factory) error

Types

type Factory

type Factory = func(*ucfg.Config) (Output, error)

func GetFactory

func GetFactory(name string) (Factory, error)

type Output

type Output interface {
	Write(p []byte) (n int, err error)
	Close() error
	NewInterval() error
}

Output is the inteface that wraps the Write and Close methods.

func New

func New(cfg *ucfg.Config) (Output, error)

New creates a new instance of the output that is specified by the "type" in the ucfg.Config that is passed in. If no matching output is found for that type than an error is returned.

Directories

Path Synopsis
Package file implements the output of logs to a file.
Package file implements the output of logs to a file.
Package rally outputs logs to ndjson suitable for use by https://github.com/elastic/rally
Package rally outputs logs to ndjson suitable for use by https://github.com/elastic/rally
Package s3 implements the output of logs to an AWS s3 bucket
Package s3 implements the output of logs to an AWS s3 bucket
Package simulate outputs logs to json suitable for use as a https://github.com/elastic/elastic-package test pipeline input events file.
Package simulate outputs logs to json suitable for use as a https://github.com/elastic/elastic-package test pipeline input events file.

Jump to

Keyboard shortcuts

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