add some docs

pull/1008/head
John Shahid 2014-11-04 12:55:23 -05:00
parent d1f4f4b8e1
commit 7d77c2593f
1 changed files with 4 additions and 1 deletions

View File

@ -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 {