File: syslog_fallback.go

package info (click to toggle)
golang-github-op-go-logging 1%2Bgit20160315.970db52-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 208 kB
  • sloc: makefile: 4
file content (28 lines) | stat: -rw-r--r-- 696 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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")
}