add some docs
parent
d1f4f4b8e1
commit
7d77c2593f
|
@ -60,7 +60,10 @@ func getWriter(writer *syslog.Writer, level string) func(string) error {
|
|||
|
||||
func connectSyslogDaemon(priority syslog.Priority) (writer *syslog.Writer, err error) {
|
||||
logTypes := []string{"unixgram", "unix"}
|
||||
logPaths := []string{"/dev/log", "/var/run/syslog"}
|
||||
logPaths := []string{
|
||||
"/dev/log", // unix socket for syslog on linux
|
||||
"/var/run/syslog", // unix socket for syslog on osx
|
||||
}
|
||||
var raddr string
|
||||
for _, network := range logTypes {
|
||||
for _, path := range logPaths {
|
||||
|
|
Loading…
Reference in New Issue