logging

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2026 License: Apache-2.0 Imports: 12 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CSVLogger

type CSVLogger[T any] struct {
	// contains filtered or unexported fields
}

CSVLogger is used for logging data in CSV format. It does not validate columns or data

func NewCSVLogger

func NewCSVLogger[T any](filename string) (*CSVLogger[T], error)

func (*CSVLogger[T]) Close

func (l *CSVLogger[T]) Close()

func (*CSVLogger[T]) Write

func (l *CSVLogger[T]) Write(value *T)

type HandlerLogger added in v1.13.0

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

func NewHandlerLogger added in v1.10.0

func NewHandlerLogger(handlerID, egressID string) *HandlerLogger

func NewHandlerLoggerWithSink added in v1.15.0

func NewHandlerLoggerWithSink(handlerID, egressID string, sink func(line string)) *HandlerLogger

NewHandlerLoggerWithSink sends the handler's own structured lines to sink. A nil sink writes them to stdout.

func (*HandlerLogger) Close added in v1.13.0

func (h *HandlerLogger) Close() error

func (*HandlerLogger) Write added in v1.13.0

func (h *HandlerLogger) Write(p []byte) (int, error)

type S3Logger

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

S3Logger only logs aws messages on upload failure

func NewS3Logger

func NewS3Logger() *S3Logger

func (*S3Logger) Logf

func (l *S3Logger) Logf(classification logging.Classification, format string, v ...interface{})

func (*S3Logger) WriteLogs

func (l *S3Logger) WriteLogs()

type StreamStats

type StreamStats struct {
	Timestamp     string
	Keyframes     uint64
	OutBytesTotal uint64
	OutBytesAcked uint64
	InBytesTotal  uint64
	InBytesAcked  uint64
}

type TrackStats

type TrackStats struct {
	Timestamp       string
	PacketsReceived uint64
	PaddingReceived uint64
	LastReceived    string
	PacketsDropped  uint64
	PacketsPushed   uint64
	SamplesPushed   uint64
	LastPushed      string
	Drift           time.Duration
	MaxDrift        time.Duration
}

Jump to

Keyboard shortcuts

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