public void log(String file, String data) {
		File f = new File(logs, file + ".log");
		try {
			if (!f.exists())
				f.createNewFile();
			BufferedWriter out = new BufferedWriter(new FileWriter(f, true));
			out.write(data + "\r\n");
			out.flush();
			out.close();
		} catch (Exception ex) {
			ex.printStackTrace();
		}
	}