simple

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProtoLogger

func NewProtoLogger(config *Config, logger *logrus.Logger) telemetry.Producer

NewProtoLogger initializes the parameters for protobuf payload logging

Types

type Config added in v0.3.1

type Config struct {
	// Verbose controls whether types are explicitly shown in the logs. Only applicable for record type 'V'.
	Verbose bool `json:"verbose"`
}

type ProtoLogger

type ProtoLogger struct {
	Config *Config
	// contains filtered or unexported fields
}

ProtoLogger is a simple protobuf logger

func (*ProtoLogger) ProcessReliableAck added in v0.3.0

func (p *ProtoLogger) ProcessReliableAck(entry *telemetry.Record)

SetReliableAckTxType no-op for logger datastore

func (*ProtoLogger) Produce

func (p *ProtoLogger) Produce(entry *telemetry.Record)

Produce sends the data to the logger

func (*ProtoLogger) ReportError added in v0.1.14

func (p *ProtoLogger) ReportError(message string, err error, logInfo logrus.LogInfo)

ReportError noop method

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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