Added logging
This commit is contained in:
28
vendor/github.com/op/go-logging/syslog_fallback.go
generated
vendored
Normal file
28
vendor/github.com/op/go-logging/syslog_fallback.go
generated
vendored
Normal file
@ -0,0 +1,28 @@
|
||||
// Copyright 2013, Örjan Persson. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//+build windows plan9
|
||||
|
||||
package logging
|
||||
|
||||
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")
|
||||
}
|
Reference in New Issue
Block a user