simplesyslog

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SyslogAgent

type SyslogAgent struct {
	ServerIP   string
	ServerPort int

	Rfc3164 bool
	Rfc5424 bool
	// contains filtered or unexported fields
}

SyslogAgent defines a syslog server IP and server port

func (*SyslogAgent) Fd

func (ss *SyslogAgent) Fd() *net.UDPConn

func (*SyslogAgent) Forward

func (ss *SyslogAgent) Forward(message []byte) (int, error)

func (*SyslogAgent) Initialize

func (ss *SyslogAgent) Initialize() (bool, string)

initialize Syslog connection

func (*SyslogAgent) Send

func (ss *SyslogAgent) Send(message string, facility string, severity string)

Send allows to send a syslog message to the set server and port

func (*SyslogAgent) Terminate

func (ss *SyslogAgent) Terminate()

Terminate closes the connection gracefully

Jump to

Keyboard shortcuts

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