mirror of
https://github.com/bluenviron/mediamtx
synced 2025-01-09 00:09:39 +00:00
21 lines
395 B
Go
21 lines
395 B
Go
package logger
|
|
|
|
// 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(Level, string, ...interface{})
|
|
close()
|
|
}
|