Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SyslogClient ¶
type SyslogClient struct {
SslSettings *tls.Config
Host string
Port int
Protocol string
ConnTimeout time.Duration
SendTimeout time.Duration
MaxMessageLength *int
RetrySendLogWaitTime time.Duration
// contains filtered or unexported fields
}
func NewSyslogClient ¶
func NewSyslogClient() *SyslogClient
func (*SyslogClient) Close ¶
func (c *SyslogClient) Close() error
func (*SyslogClient) Connect ¶
func (c *SyslogClient) Connect() error
func (*SyslogClient) Send ¶
func (c *SyslogClient) Send(message string) error
type SyslogFormatRFC3164 ¶
type SyslogFormatRFC3164 struct {
Priority string
Facility *syslog.Priority
Severity *syslog.Priority
Timestamp time.Time
Hostname string
Pid string
Process string
Message string
}
func NewSyslogFormatRFC3164 ¶
func NewSyslogFormatRFC3164() *SyslogFormatRFC3164
func (*SyslogFormatRFC3164) FormatSyslogMessageWithRFC3164 ¶
func (f *SyslogFormatRFC3164) FormatSyslogMessageWithRFC3164() (string, error)
func (*SyslogFormatRFC3164) GetDefaultPriority ¶
func (f *SyslogFormatRFC3164) GetDefaultPriority() string
type SyslogFormatRFC5424 ¶
type SyslogFormatRFC5424 struct {
Priority string
Facility *syslog.Priority
Severity *syslog.Priority
Version string
Timestamp time.Time
Hostname string
AppName string
Pid string
MsgId string
Message string
}
func NewSyslogFormatRFC5424 ¶
func NewSyslogFormatRFC5424() *SyslogFormatRFC5424
func (*SyslogFormatRFC5424) FormatSyslogMessageWithRFC5424 ¶
func (f *SyslogFormatRFC5424) FormatSyslogMessageWithRFC5424() (string, error)
func (*SyslogFormatRFC5424) GetDefaultPriority ¶
func (f *SyslogFormatRFC5424) GetDefaultPriority() string
Click to show internal directories.
Click to hide internal directories.