FrameworkLogEntry logEntry = new FrameworkLogEntry(entry, FrameworkLogEntry.ERROR, 0, "FrameworkEvent.ERROR", 0, t, null);
int severity; switch (frameworkEvent.getType()) { case FrameworkEvent.INFO : severity = FrameworkLogEntry.INFO; break; case FrameworkEvent.ERROR : severity = FrameworkLogEntry.ERROR; break; case FrameworkEvent.WARNING : severity = FrameworkLogEntry.WARNING; break; default : severity = FrameworkLogEntry.OK; } FrameworkLogEntry logEntry = new FrameworkLogEntry(entry, severity, 0, "", 0, t, null);
	public void log(FrameworkEvent frameworkEvent) {		Bundle b = frameworkEvent.getBundle();		Throwable t = frameworkEvent.getThrowable();		String entry = b.getSymbolicName() == null ? b.getLocation() : b.getSymbolicName();		FrameworkLogEntry logEntry = new FrameworkLogEntry(entry, FrameworkLogEntry.ERROR, 0, "FrameworkEvent.ERROR", 0, t, null); //$NON-NLS-1$ //$NON-NLS-2$		log(logEntry);	}