Add --syslog flag to optionally log to syslog on capable platforms

This commit is contained in:
Nick Craig-Wood
2017-02-11 20:27:46 +00:00
parent ac1c041377
commit 666dae4229
10 changed files with 179 additions and 59 deletions
+12
View File
@@ -0,0 +1,12 @@
// Log the panic to the log file - for oses which can't do this
// +build !windows,!darwin,!dragonfly,!freebsd,!linux,!nacl,!netbsd,!openbsd
package fs
import "os"
// redirectStderr to the file passed in
func redirectStderr(f *os.File) {
Errorf(nil, "Can't redirect stderr to file")
}