public String log() throws Exception
	{
		ArrayList<LogItem> toLog = new ArrayList<LogItem>(data.length);
		LogItem toAdd;
		for (int i = 0; i < data.length; ++i)
		{
			if (dataSwitch[i])
			{
				toAdd = new LogItem();
				toAdd.barID = AutoAppro.products.get(data[i].supplierID).barID;
				toAdd.price = data[i].price;
				toAdd.quantity = data[i].quantity;
				toLog.add(toAdd);
			}
		}
		return AutoAppro.logger.log(toLog);
	}