if (activator != null) activator.getFrameworkLog().setFile(path.toFile(), true);
if (activator != null) { FrameworkLog log = activator.getFrameworkLog(); if (log != null) log.setFile(path.toFile(), true); else if (debug()) System.out.println("ERROR: Unable to acquire log service. Application will proceed, but logging will be disabled."); }
	private void createLocation() throws CoreException {		// append on the metadata location so that the whole structure is created.  		File file = location.append(F_META_AREA).toFile();		try {			file.mkdirs();		} catch (Exception e) {			String message = NLS.bind(CommonMessages.meta_couldNotCreate, file.getAbsolutePath());			throw new CoreException(new Status(IStatus.ERROR, IRuntimeConstants.PI_RUNTIME, IRuntimeConstants.FAILED_WRITE_METADATA, message, e));		}		if (!file.canWrite()) {			String message = NLS.bind(CommonMessages.meta_readonly, file.getAbsolutePath());			throw new CoreException(new Status(IStatus.ERROR, IRuntimeConstants.PI_RUNTIME, IRuntimeConstants.FAILED_WRITE_METADATA, message, null));		}		// set the log file location now that we created the data area		IPath path = location.append(F_META_AREA).append(F_LOG);		try {			Activator activator = Activator.getDefault();			if (activator != null)				activator.getFrameworkLog().setFile(path.toFile(), true);		} catch (IOException e) {			e.printStackTrace();		}	}