syslog

package
v0.0.0-...-a95724a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 25, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name     = "syslog"
	Host     = "host"
	Facility = "facility"
	Tag      = "tag"
)

Variables

View Source
var (
	ErrUnknownFacility = errors.New("unknown syslog facility")
)

Functions

func DefaultConfig

func DefaultConfig() *elog.OutputConfig

func New

func New(cfg *elog.OutputConfig) (elog.Output, error)

Types

type Output

type Output struct {
	// contains filtered or unexported fields
}

func (*Output) Close

func (o *Output) Close() error

func (*Output) Sync

func (o *Output) Sync() error

func (*Output) Write

func (o *Output) Write(l elog.Level, line []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL