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(pkt *rtp.Packet, _ interceptor.Attributes) string
RTPFormat formats an RTP packet as a string for logging.
Click to show internal directories.
Click to hide internal directories.