mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-11-17 02:48:28 -07:00
44c7221ae9
Merge in DNS/adguard-home from rm-outdated to master Squashed commit of the following: commit 38669542f98a8267b06197518078a8c06de670b7 Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Tue Jan 26 18:04:08 2021 +0300 all: rm ignored test, outdated tag
19 lines
292 B
Go
19 lines
292 B
Go
// +build !windows,!plan9
|
|
|
|
package sysutil
|
|
|
|
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
|
|
}
|