kafka

package
v8.0.8 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Executor

type Executor struct {
	// contains filtered or unexported fields
}

Executor send log lines to kafka with specified topic.

You can subscribe kafka message than redirect to aliyun log service or elasticsearch by logstash.

func New

func New() *Executor

func (*Executor) Logs

func (o *Executor) Logs(lines ...*base.Line) error

func (*Executor) SetFormatter

func (o *Executor) SetFormatter(formatter formatters.Formatter)

Jump to

Keyboard shortcuts

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