blob: be7f561a80a8a826f14d955fa15c27b4b73256f3 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2010 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.e4.core.internal.di.osgi;
import org.eclipse.osgi.framework.log.FrameworkLog;
import org.eclipse.osgi.framework.log.FrameworkLogEntry;
public class LogHelper {
static final private String plugin_name = "org.eclipse.e4.core"; //$NON-NLS-1$
static public void logError(String msg, Throwable e) {
FrameworkLog log = DIActivator.getDefault().getFrameworkLog();
FrameworkLogEntry logEntry = new FrameworkLogEntry(plugin_name, FrameworkLogEntry.ERROR, 0, msg, 0, e, null);
log.log(logEntry);
}
}