logexporter

package
v0.54.6 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogger

func NewLogger(logLevel uint32) *logrus.Logger

func SetupLogExporter

func SetupLogExporter(logger *logrus.Logger, sender castai.CastAIClient)

Types

type LogExporter

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

LogExporter hooks into logrus and sends logs to Mothership.

func (*LogExporter) Fire

func (e *LogExporter) Fire(entry *logrus.Entry) error

Fire called by logrus with log entry that LogExporter sends out.

func (*LogExporter) Levels

func (e *LogExporter) Levels() []logrus.Level

Levels lists levels that tell logrus to trigger log injection.

func (*LogExporter) Wait

func (e *LogExporter) Wait()

Wait lets all pending log sends to finish.

Jump to

Keyboard shortcuts

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