mediamtx/internal/syslog/syslog_win.go

27 lines
443 B
Go
Raw Normal View History

// +build windows
package syslog
import (
"fmt"
2020-10-13 23:01:56 +00:00
"io"
)
type syslog struct {
}
2020-11-05 11:30:25 +00:00
// New allocates a io.WriteCloser that writes to the system log.
func New(prefix string) (io.WriteCloser, error) {
return nil, fmt.Errorf("not implemented on windows")
}
2020-11-05 11:30:25 +00:00
// Close implements io.WriteCloser.
func (ls *syslog) Close() error {
return nil
}
2020-11-05 11:30:25 +00:00
// Write implements io.WriteCloser.
func (ls *syslog) Write(p []byte) (int, error) {
return 0, nil
}