golanggohlsrtmpwebrtcmedia-serverobs-studiortcprtmp-proxyrtmp-serverrtprtsprtsp-proxyrtsp-relayrtsp-serversrtstreamingwebrtc-proxy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
426 B
24 lines
426 B
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() |
|
}
|
|
|