//OpenLogFile switches the log engine to a file, rather than stdout
OpenLogFile switches the log engine to a file, rather than stdout
// OpenLogFile switches the log engine to a file rather than stdout
func OpenLogFile() {
	f, err := os.OpenFile("./debug.log", os.O_RDWR|os.O_CREATE|os.O_APPEND, 0600)
	if err != nil {
		log.Printf("error opening file: %v", err)
		log.Fatal("Hint: touch ./debug.log, or chown/chmod it so that the checksigd process can access it.")
		os.Exit(1)
	}
	log.SetOutput(f)
}
func OpenLogFile ( ) { f , err := os . OpenFile ( " " , os . O_RDWR | os . O_CREATE | os . O_APPEND , 0600 ) if err != nil { log . Printf ( " " , err ) log . Fatal ( " " ) os . Exit ( 1 ) } log . SetOutput ( f ) }
OpenLogFile switches the log engine to a file, rather than stdout
OpenLogFile switches the log engine to a file rather than stdout