public Customer(String custName, String eMail, String product, float maxPrice, String actionWhileWaiting, Map<String, Sale> sales) throws SecurityException, IOException{
		this.custName = custName;
		this.seteMail(eMail);
		this.setProduct(product);
		this.setMaxPrice(maxPrice);
		this.setActionWhileWaiting(actionWhileWaiting);
		this.sales = sales;
		nextUP = rndUp.nextFloat();
		registerSale();
		
		logger = Logger.getLogger(custName);
		logHandler = new FileHandler(custName + ".log");
		logHandler.setFormatter(new SaleFormatter());
		logger.addHandler(logHandler);
		logger.setUseParentHandlers(false);
		
		params[1] = "Registering";
		params[0] = custName;
		logger.log(Level.INFO, "Ok", params);
	}