private void err(String prefix, String message, Throwable throwable)
	{
		String log = buildMessage(prefix, message);
		
		System.err.println(log);
		
		if (outputStream != null)
		{
			try
			{
				outputStream.write((log + "\r\n").getBytes());
			}
			catch (IOException e)
			{
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		}
		
		if (throwable != null)
		{
			for (StackTraceElement stackTraceElement : throwable.getStackTrace())
			{
				try
				{
					outputStream.write(("          at " + stackTraceElement.getClassName() + "." + stackTraceElement.getMethodName() + "(" + stackTraceElement.getFileName() + ":" + stackTraceElement.getLineNumber() + ")" + "\r\n").getBytes());
				}
				catch (IOException e)
				{
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
			}
		}
	}