public static void saveLogs() {
		if(logsBuffer.isEmpty()) return;
		try {
			PrintWriter pw = new PrintWriter(new BufferedWriter(new FileWriter(logFile, true)));
			String logStr = null;
			while((logStr = logsBuffer.poll()) != null) {
				pw.println(logStr);
			}
			pw.close();
		} catch (FileNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}