kafkalog

package
v0.0.0-...-bc493c1 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const Name = "kafkalog"

Variables

This section is empty.

Functions

func Init

func Init(hosts []string, duration, queueLen int) error

func New

func New(ctx logger.Context) (logger.Logger, error)

func NewAsyncProducer

func NewAsyncProducer(hosts []string) (sarama.AsyncProducer, error)

func ValidateLogOpt

func ValidateLogOpt(cfg map[string]string) error

ValidateLogOpt looks for json specific log options max-file & max-size.

Types

type KafkaLogger

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

func (*KafkaLogger) Close

func (k *KafkaLogger) Close() error

func (*KafkaLogger) Log

func (k *KafkaLogger) Log(msg *logger.Message) error

func (*KafkaLogger) Name

func (k *KafkaLogger) Name() string

func (*KafkaLogger) ReadLogs

func (k *KafkaLogger) ReadLogs(config logger.ReadConfig) *logger.LogWatcher

type KafkaLogs

type KafkaLogs struct {
	Log    []byte
	Stream string
	// contains filtered or unexported fields
}

func (*KafkaLogs) Encode

func (d *KafkaLogs) Encode() ([]byte, error)

func (*KafkaLogs) Length

func (d *KafkaLogs) Length() int

Jump to

Keyboard shortcuts

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