Documentation ¶
Overview ¶
Package syslog provides a syslog plugin for go-logging.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SyslogOutputter ¶
SyslogOutputter implements Outputter by logging to the system log daemon.
func NewSyslog ¶
func NewSyslog(format logging.Formatter, tag string) (*SyslogOutputter, error)
Creates a new SyslogOutputter with a name (tag) and the USER facility.
func NewSyslogFacility ¶
func NewSyslogFacility(format logging.Formatter, tag string, facility syslog.Priority) (*SyslogOutputter, error)
Creates a new SyslogOutputter with a custom facility (see syslog.Priority).
func (SyslogOutputter) Output ¶
func (s SyslogOutputter) Output(msg *logging.Message)
Implements Outputter.
Click to show internal directories.
Click to hide internal directories.