logging

package
v0.0.0-...-beed344 Latest Latest
Warning

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

Go to latest
Published: May 29, 2025 License: Apache-2.0, MIT Imports: 9 Imported by: 0

Documentation

Overview

Package logging provides utilities for logging in bandwidth estimation tests.

Package logging provides utilities for logging in bandwidth estimation tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLogFile

func GetLogFile(file string) (io.WriteCloser, error)

GetLogFile returns an io.WriteCloser for the specified file path. If file is empty, it returns a no-op writer. If file is "stdout", it returns os.Stdout wrapped in a nopCloser. Otherwise, it creates and returns the specified file.

func RTCPFormat

func RTCPFormat(pkts []rtcp.Packet, _ interceptor.Attributes) string

RTCPFormat formats RTCP packets as a string for logging.

Types

type RTPFormatter

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

RTPFormatter formats RTP packets for logging.

func (*RTPFormatter) RTPFormat

func (f *RTPFormatter) RTPFormat(info *interceptor.StreamInfo, pkt *rtp.Packet, attr interceptor.Attributes) ([]byte, error)

RTPFormat formats an RTP packet as a string for logging.

Jump to

Keyboard shortcuts

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