SyslogHook to send logs via syslog.
| 12 | |
| 13 | // SyslogHook to send logs via syslog. |
| 14 | type 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, "")` |
nothing calls this directly
no outgoing calls
no test coverage detected