logs

package
v1.18.10 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init added in v1.13.0

func Init(machineId, hostname, version string)

func OtelLogEmitter added in v1.13.0

func OtelLogEmitter(containerId string) logparser.OnMsgCallbackF

Types

type JournaldReader

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

func NewJournaldReader

func NewJournaldReader(journalPaths ...string) (*JournaldReader, error)

func (*JournaldReader) Close

func (r *JournaldReader) Close()

func (*JournaldReader) Subscribe

func (r *JournaldReader) Subscribe(cgroup string, ch chan<- logparser.LogEntry) error

func (*JournaldReader) Unsubscribe

func (r *JournaldReader) Unsubscribe(cgroup string)

type TailReader

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

func NewTailReader

func NewTailReader(fileName string, ch chan<- logparser.LogEntry) (*TailReader, error)

func (*TailReader) Stop

func (r *TailReader) Stop()

Jump to

Keyboard shortcuts

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