Syslog defines the logger that writes traces to the syslog. It can write to the local or a remote daemon.
| 14 | // Syslog defines the logger that writes traces to the syslog. |
| 15 | // It can write to the local or a remote daemon. |
| 16 | type Syslog struct { |
| 17 | Writer *syslog.Writer |
| 18 | cfg LoggerConfig |
| 19 | logFormat formats.LoggerFormat |
| 20 | Name string |
| 21 | Tag string |
| 22 | } |
| 23 | |
| 24 | // NewSyslog returns a new object that manipulates and prints outbound connections |
| 25 | // to syslog (local or remote), with the given format (RFC5424 by default) |
nothing calls this directly
no outgoing calls
no test coverage detected