new FrameworkLogEntry(0, b.getLocation() + " 0 0", "FrameworkEvent.ERROR", stack);
new FrameworkLogEntry(0, b.getLocation() + " 0 0", "FrameworkEvent.ERROR", 0, t);
	public void log(FrameworkEvent frameworkEvent){		Bundle b = frameworkEvent.getBundle();		Throwable t = frameworkEvent.getThrowable();		String stack = null;		if (t != null) {			StringWriter sw = new StringWriter();			PrintWriter pw = new PrintWriter(sw);			// this is the stacktrace code "0"			pw.println(" 0");			t.printStackTrace(pw);			if (t instanceof BundleException){				Throwable n = ((BundleException)t).getNestedException();				if (n != null) {					pw.println("Nested exception:");					n.printStackTrace(pw);				}			}			stack = sw.toString();		}				FrameworkLogEntry logEntry = 			new FrameworkLogEntry(0, b.getLocation() + " 0 0", "FrameworkEvent.ERROR", stack);		log(logEntry);	}