Add --syslog flag to optionally log to syslog on capable platforms
This commit is contained in:
@@ -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")
|
||||
}
|
||||
Reference in New Issue
Block a user