simple

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2025 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"`
}

Config for the protobuf logger

type Producer added in v0.4.0

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

Producer is a simple protobuf logger

func (*Producer) Close added in v0.4.0

func (p *Producer) Close() error

Close the producer

func (*Producer) ProcessReliableAck added in v0.4.0

func (p *Producer) ProcessReliableAck(_ *telemetry.Record)

ProcessReliableAck noop method

func (*Producer) Produce added in v0.4.0

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

Produce sends the data to the logger

func (*Producer) ReportError added in v0.4.0

func (p *Producer) ReportError(_ string, _ error, _ 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