syslog

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Syslog

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

Syslog represents a channel of type Syslog

func New

func New(cfg syslogCfg.Syslog, logger *zap.Logger) (*Syslog, error)

New creates new Syslog channel

func (*Syslog) Ignore added in v0.8.2

func (sl *Syslog) Ignore() bool

func (*Syslog) Name

func (sl *Syslog) Name() string

Name returns the channel name

func (*Syslog) Send

func (sl *Syslog) Send(mes *message.Message) error

Send the message to the channel

Jump to

Keyboard shortcuts

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