mirror of
https://github.com/bluenviron/mediamtx
synced 2025-01-07 07:20:01 +00:00
25 lines
426 B
Go
25 lines
426 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, ...interface{})
|
|
close()
|
|
}
|