public Logging() {
		String time = getFilenameDateTime();
		logfilename = "log/log" + time + ".xml";
		msgfilename = "log/.msg" + time;

		start = "\t<start date=\"" + getLogDate() + "\" time=\"" + getLogTime() + "\" />\n";

		try {
			File file = new File("log/");
			if (!file.exists())
				file.mkdir();
			else
				if (!file.isDirectory())
					throw new IOException(file.getAbsolutePath() + " is not a directory");

			fMessages = new File(msgfilename);
			if (!fMessages.exists())
				fMessages.createNewFile();
			oswMessage = new OutputStreamWriter(new FileOutputStream(fMessages), encoding);

		} catch (Exception e) {
			e.printStackTrace();
			return;
		}
	}