Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidSyslogFacility represents the invalid facility. ErrInvalidSyslogFacility = errors.New("invalid syslog facility") // ErrInvalidSyslogFormat represents the invalid format. ErrInvalidSyslogFormat = errors.New("invalid syslog format") // ErrFailedToLoadX509KeyPair is to used to indicate that it's failed to load x509 key pair. ErrFailedToLoadX509KeyPair = errors.New("fail to load x509 key pair") )
Functions ¶
func ValidateSyslogOption ¶
ValidateSyslogOption validates the syslog config.
Types ¶
type Syslog ¶
type Syslog struct {
// contains filtered or unexported fields
}
Syslog writes the log data into syslog.
func (*Syslog) WriteLogMessage ¶
func (s *Syslog) WriteLogMessage(msg *logger.LogMessage) error
WriteLogMessage will write the LogMessage.
Click to show internal directories.
Click to hide internal directories.