mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-11-22 21:15:35 +03:00
9f5a015f42
Updates #2419. Squashed commit of the following: commit e57e6ce56c59d4ef42b1716247fe48a86404179e Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Tue Jun 15 19:37:15 2021 +0300 all: imp build tags
19 lines
321 B
Go
19 lines
321 B
Go
//go:build !(windows || plan9)
|
|
// +build !windows,!plan9
|
|
|
|
package aghos
|
|
|
|
import (
|
|
"log/syslog"
|
|
|
|
"github.com/AdguardTeam/golibs/log"
|
|
)
|
|
|
|
func configureSyslog(serviceName string) error {
|
|
w, err := syslog.New(syslog.LOG_NOTICE|syslog.LOG_USER, serviceName)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
log.SetOutput(w)
|
|
return nil
|
|
}
|