sh/log.go
func StartLogger() {
	var err error

	if BOOT {
		if logFile, err = os.OpenFile(_LOG_FILE, os.O_WRONLY|os.O_TRUNC, 0); err != nil {
			log.Print(err)
		} else {
			Log = log.New(logFile, "", log.Lshortfile)
		}
	} else {
		if Log, err = syslog.NewLogger(syslog.LOG_NOTICE, log.Lshortfile); err != nil {
			log.Fatal(err)
		}
	}
}
func StartLogger() {
	var err error

	if BOOT {
		if logFile, err = os.OpenFile(_LOG_FILE, os.O_WRONLY|os.O_TRUNC, 0); err != nil {
			log.Print(err)
		} else {
			Log = log.New(logFile, "", log.Lshortfile)
		}
	} else {
		if Log, err = syslog.NewLogger(syslog.LOG_NOTICE, log.Lshortfile); err != nil {
			log.Fatal(err)
		}
	}
}
func StartLogger ( ) { var err error if BOOT { if logFile , err = os . OpenFile ( _LOG_FILE , os . O_WRONLY | os . O_TRUNC , 0 ) ; err != nil { log . Print ( err ) } else { Log = log . New ( logFile , " " , log . Lshortfile ) } } else { if Log , err = syslog . NewLogger ( syslog . LOG_NOTICE , log . Lshortfile ) ; err != nil { log . Fatal ( err ) } } }
// StartLogger initializes the log file.
StartLogger initializes the log file .