logging

package
v0.0.0-...-da33942 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2026 License: 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(pkt rtcp.Packet, _ interceptor.Attributes) ([]byte, error)

RTCPFormat formats a single RTCP packet as a binary byte slice 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(pkt *rtp.Packet, _ interceptor.Attributes) ([]byte, error)

RTPFormat formats an RTP packet as a binary byte slice for logging.

Jump to

Keyboard shortcuts

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