public void writeLog(Exception ec){
		PrintStream pw;
		try {
			pw = new PrintStream(new FileOutputStream("logfile" + sdf.format(Calendar.getInstance().getTime()) + ".log", false));
			ec.printStackTrace(pw);
			pw.close();
		} catch (FileNotFoundException e) {
			writeLog(e); // Purer Spass!
		}

	}