func initializeLog(logFile string) (*os.File, error) {
	logFileFd, err := os.OpenFile(logFile, os.O_RDWR|os.O_CREATE|os.O_APPEND, 0666)
	if err != nil {
		return &os.File{}, fmt.Errorf("error opening file: %v", err)
	}
	log.SetOutput(logFileFd)

	return logFileFd, nil
}
// Initializes and sets the logger
Initializes and sets the logger
// Initializes and sets the logger
func initializeLog(logFile string) (*os.File, error) {
	logFileFd, err := os.OpenFile(logFile, os.O_RDWR|os.O_CREATE|os.O_APPEND, 0666)
	if err != nil {
		return &os.File{}, fmt.Errorf("error opening file: %v", err)
	}
	log.SetOutput(logFileFd)
	return logFileFd, nil
}
func initializeLog ( logFile string ) ( * os . File , error ) { logFileFd , err := os . OpenFile ( logFile , os . O_RDWR | os . O_CREATE | os . O_APPEND , 0666 ) if err != nil { return & os . File { } , fmt . Errorf ( " " , err ) } log . SetOutput ( logFileFd ) return logFileFd , nil }
Initializes and sets the logger
Initializes and sets the logger