summaryrefslogtreecommitdiffstats
path: root/logging/logging_other.go
blob: 792ae1e5eeadd0f34b219e40d9ceee92248fe9ba (plain)
1
2
3
4
5
6
7
8
9
10
11
// +build linux openbsd freebsd darwin
// +build !linux,arm64

package logging

import "syscall"
import "os"

func stderrToLogfile(logfile *os.File) {
	syscall.Dup2(int(logfile.Fd()), 2)
}