logprocess

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init added in v0.8.1

func Init(cfg *config.LogProcessorConfig) error

Types

type LogCollector

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

LogCollector implements the collector.Collector interface for log collection

func GetInstance

func GetInstance() *LogCollector

GetInstance returns the singleton instance of LogCollector

func (*LogCollector) CollectorName

func (lc *LogCollector) CollectorName() string

CollectorName returns the unique name of the collector

func (*LogCollector) Disable

func (lc *LogCollector) Disable()

func (*LogCollector) Enable

func (lc *LogCollector) Enable()

func (*LogCollector) GetStatus added in v0.5.16

func (lc *LogCollector) GetStatus() ds.CollectorStatus

GetStatus returns the current status of the log collector

func (*LogCollector) OnNewConnection added in v0.8.1

func (lc *LogCollector) OnNewConnection()

OnNewConnection is called when a new connection is established

type LogStreamWriter added in v0.5.0

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

LogStreamWriter implements io.Writer to send logs to Outrig

func MakeLogStreamWriter added in v0.5.0

func MakeLogStreamWriter(name string) *LogStreamWriter

MakeLogStreamWriter creates a new LogStreamWriter

func (*LogStreamWriter) Write added in v0.5.0

func (w *LogStreamWriter) Write(p []byte) (n int, err error)

Write implements the io.Writer interface

Jump to

Keyboard shortcuts

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