Policy.setLog(new ILogger() {
public void log(IStatus status) {
ServiceTracker frameworkLogTracker = _frameworkLogTracker;
FrameworkLog log = frameworkLogTracker == null ? null : (FrameworkLog) frameworkLogTracker.getService();
if (log != null) {
log.log(createLogEntry(status));
} else {
// fall back to System.err
System.err.println(status.getPlugin() + " - " + status.getCode() + " - " + status.getMessage()); //$NON-NLS-1$//$NON-NLS-2$
if( status.getException() != null ) {
status.getException().printStackTrace(System.err);