syslog

package
v0.0.0-...-424d171 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const Name = "syslog"

Name is the name used in the configuration file and the registry.

Variables

This section is empty.

Functions

func New

func New(cfg *ucfg.Config) (s output.Output, err error)

New is the Factory for making a new syslog output

Types

type Output

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

Output hosts the WriteCloser

func (*Output) Close

func (s *Output) Close() error

Close closes the connection to the syslog server

func (*Output) NewInterval

func (s *Output) NewInterval() error

func (*Output) Write

func (s *Output) Write(b []byte) (n int, err error)

Write sends the log message to the syslog server

Jump to

Keyboard shortcuts

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