mediamtx/internal/logger/destination.go
2025-11-11 23:57:52 +01:00

24 lines
418 B
Go

package logger
import (
"time"
)
// Destination is a log destination.
type Destination int
const (
// DestinationStdout writes logs to the standard output.
DestinationStdout Destination = iota
// DestinationFile writes logs to a file.
DestinationFile
// DestinationSyslog writes logs to the system logger.
DestinationSyslog
)
type destination interface {
log(time.Time, Level, string, ...any)
close()
}