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) 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
Click to show internal directories.
Click to hide internal directories.