go_logger/syslog_fallback.go
Snoosaphone d346733b9b Changing up the flow of the logging system, starting to move the tests
into their own directory for organization.
2019-12-28 19:51:10 -06:00

23 lines
510 B
Go

package logger
import (
"fmt"
)
type Priority int
type SyslogBackend struct {
}
func NewSyslogBackend(prefix string) (b *SyslogBackend, err error) {
return nil, fmt.Errorf("Platform does not support syslog")
}
func NewSyslogBackendPriority(prefix string, priority Priority) (b *SyslogBackend, err error) {
return nil, fmt.Errorf("Platform does not support syslog")
}
func (b *SyslogBackend) Log(level Level, calldepth int, rec *Record) error {
return fmt.Errorf("Platform does not support syslog")
}