MCPcopy
hub / github.com/sirupsen/logrus / SyslogHook

Struct SyslogHook

hooks/syslog/syslog.go:14–18  ·  view source on GitHub ↗

SyslogHook to send logs via syslog.

Source from the content-addressed store, hash-verified

12
13// SyslogHook to send logs via syslog.
14type SyslogHook struct {
15 Writer *syslog.Writer
16 SyslogNetwork string
17 SyslogRaddr string
18}
19
20// Creates a hook to be added to an instance of logger. This is called with
21// `hook, err := NewSyslogHook("udp", "localhost:514", syslog.LOG_DEBUG, "")`

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected