Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HookSyslog ¶
type HookSyslog interface { logtps.Hook Done() <-chan struct{} WriteSev(s SyslogSeverity, p []byte) (n int, err error) }
func New ¶
func New(opt logcfg.OptionsSyslog, format logrus.Formatter) (HookSyslog, error)
type SyslogFacility ¶
type SyslogFacility uint8
const ( SyslogFacilityKern SyslogFacility = iota + 1 SyslogFacilityUser SyslogFacilityMail SyslogFacilityDaemon SyslogFacilityAuth SyslogFacilitySyslog SyslogFacilityLpr SyslogFacilityNews SyslogFacilityUucp SyslogFacilityCron SyslogFacilityAuthPriv SyslogFacilityFTP SyslogFacilityLocal0 SyslogFacilityLocal1 SyslogFacilityLocal2 SyslogFacilityLocal3 SyslogFacilityLocal4 SyslogFacilityLocal5 SyslogFacilityLocal6 SyslogFacilityLocal7 )
func MakeFacility ¶
func MakeFacility(facility string) SyslogFacility
func (SyslogFacility) String ¶
func (s SyslogFacility) String() string
type SyslogSeverity ¶
type SyslogSeverity uint8
const ( SyslogSeverityEmerg SyslogSeverity = iota + 1 SyslogSeverityAlert SyslogSeverityCrit SyslogSeverityErr SyslogSeverityWarning SyslogSeverityNotice SyslogSeverityInfo SyslogSeverityDebug )
func MakeSeverity ¶
func MakeSeverity(severity string) SyslogSeverity
func (SyslogSeverity) String ¶
func (s SyslogSeverity) String() string
Click to show internal directories.
Click to hide internal directories.