private void log(String prefix, String message)
	{
		String log = buildMessage(prefix, message);
		
		System.out.println(log);
		
		if (outputStream != null)
		{
			try
			{
				outputStream.write((log + "\r\n").getBytes());
			}
			catch (IOException e)
			{
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		}
	}