Documentation ¶
Overview ¶
Package syslog provides logging to syslog.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Appender ¶
type Appender struct { // Known networks are "tcp", "tcp4", "tcp6", "udp", "udp4", "udp6", // "ip", "ip4", "ip6", "unix", "unixgram" and "unixpacket". // See tcp.Dial. Network string Addr string Facility Facility Tag string // contains filtered or unexported fields }
Appender sends logging to syslog server/daemon. All properties must be set before Start(), otherwise default values will be used.
func (*Appender) Append ¶
func (a *Appender) Append(event *gol.LoggingEvent)
Append encodes the given logging event and sends to syslog connection.
Click to show internal directories.
Click to hide internal directories.