syslog

package
v0.0.0-...-29fb1c0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2019 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SyslogPriorityMap = map[int]logstd.Level{
	0: log.PanicLevel,
	1: log.PanicLevel,
	2: log.PanicLevel,
	3: log.ErrorLevel,
	4: log.WarnLevel,
	5: log.InfoLevel,
	6: log.InfoLevel,
	7: log.DebugLevel,
}

Functions

func Init

func Init(configInterface interface{}, exportChannel chan *log.Entry) input.Input

Types

type Input

type Input struct {
	input.Input
	// contains filtered or unexported fields
}

func (*Input) Close

func (in *Input) Close()

func (*Input) Listen

func (in *Input) Listen()

type InputConfig

type InputConfig struct {
	Type    string `mapstructure:"type"`
	Address string `mapstructure:"address"`
}

Jump to

Keyboard shortcuts

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