public void Log (String str) {
		if (str.length() > 0) {
			try {
				cal = Calendar.getInstance();
				timestamp = timestampformat.format(cal.getTime());
				writer.write(timestamp);
				writer.write(str);
				writer.newLine();
				writer.flush();
			} catch (IOException e) {
				System.out.println(e.getMessage());
			}
		}
	}