public void mark(TimeStampedMessage message) throws IOException {
		message.setTimeStamp(clockService.incrementAndGetTimeStamp());
		System.out.println("Current " + localName + "'s time stamp: " + clockService.getTimeStamp());
		Socket socket = null;
		try {
			socket = new Socket(loggerIp, loggerPort);
		} catch (ConnectException e) {
			System.out.println("Couldn't connect to logger. Log info was not sent.");
			return;
		}
		ObjectOutputStream ot = new ObjectOutputStream(socket.getOutputStream());
		ot.writeObject(message);
		ot.flush();
		ot.close();
		socket.close();
	}