* move ./*.go files into ./home/ directory

This commit is contained in:
Simon Zolin
2019-06-10 11:33:19 +03:00
parent 9fe34818e3
commit dc682763ff
27 changed files with 37 additions and 28 deletions

18
home/syslog_others.go Normal file
View File

@@ -0,0 +1,18 @@
// +build !windows,!nacl,!plan9
package home
import (
"log"
"log/syslog"
)
// configureSyslog reroutes standard logger output to syslog
func configureSyslog() error {
w, err := syslog.New(syslog.LOG_NOTICE|syslog.LOG_USER, serviceName)
if err != nil {
return err
}
log.SetOutput(w)
return nil
}