Examples of ILog


Examples of org.eclipse.core.runtime.ILog

   * Logging exception information.
   *
   * @param ex exception
   */
  public static void logException(Throwable ex){
    ILog log = getDefault().getLog();
    IStatus status = null;
    if(ex instanceof CoreException){
      status = ((CoreException)ex).getStatus();
    } else {
      status = new Status(IStatus.ERROR,getDefault().getPluginId(),0,ex.toString(),ex);
    }
    log.log(status);
  }
View Full Code Here

Examples of org.eclipse.core.runtime.ILog

   *
   * @see org.apache.uima.jcas.jcasgen_gen.IError#newError(int, java.lang.String)
   */
  public void newError(int severity, String message, Exception exception) {
    String pluginId = JgPlugin.getDefault().getDescriptor().getUniqueIdentifier();
    ILog log = JgPlugin.getDefault().getLog();
    log.log(new Status(logLevels[severity], pluginId, IStatus.OK, message, exception));
    if (IError.WARN < severity)
      throw new ErrorExit();
  }
View Full Code Here

Examples of org.eclipse.core.runtime.ILog

    log.log(new Status(IStatus.ERROR, PLUGIN_ID, -1, msg, e));
  }

  public static void logInfo(String message) {

    final ILog log = getDefault().getLog();
    log.log(new Status(IStatus.INFO, PLUGIN_ID, IStatus.OK, message, null));
  }
View Full Code Here

Examples of org.eclipse.core.runtime.ILog

    log.log(new Status(IStatus.INFO, PLUGIN_ID, IStatus.OK, message, null));
  }

  public static void logError(String message) {

    final ILog log = getDefault().getLog();
    log.log(new Status(IStatus.ERROR, PLUGIN_ID, IStatus.OK, message, null));
  }
View Full Code Here

Examples of org.eclipse.core.runtime.ILog

    log.log(new Status(IStatus.ERROR, PLUGIN_ID, IStatus.OK, message, null));
  }

  public static void logWarning(String message) {

    final ILog log = getDefault().getLog();
    log.log(new Status(IStatus.WARNING, PLUGIN_ID, IStatus.OK, message, null));
  }
View Full Code Here

Examples of org.eclipse.core.runtime.ILog

    return plugin;
  }
 
  public static void logException(final Throwable e) {

    final ILog log = getDefault().getLog();
    final String msg = "Encountered an unexpected exception.";
    log.log(new Status(IStatus.ERROR, PLUGIN_ID, -1, msg, e));
  }
View Full Code Here

Examples of org.eclipse.core.runtime.ILog

   * Logs the exception to the default logger of the plugin
   * @param e Exception to be logged
   */
  public static void logException(final Throwable e) {

    final ILog log = getDefault().getLog();
    final String msg = "Encountered an unexpected exception.";
    log.log(new Status(IStatus.ERROR, PLUGIN_ID, -1, msg, e));
  }
View Full Code Here

Examples of org.eclipse.core.runtime.ILog

    log.log(new Status(IStatus.ERROR, PLUGIN_ID, -1, msg, e));
  }
 
  public static void logInfo(String message) {

    final ILog log = getDefault().getLog();
    log.log(new Status(IStatus.INFO, PLUGIN_ID, IStatus.OK, message, null));
  }
View Full Code Here

Examples of org.eclipse.core.runtime.ILog

    log.log(new Status(IStatus.INFO, PLUGIN_ID, IStatus.OK, message, null));
  }

  public static void logError(String message) {

    final ILog log = getDefault().getLog();
    log.log(new Status(IStatus.ERROR, PLUGIN_ID, IStatus.OK, message, null));
  }
View Full Code Here

Examples of org.eclipse.core.runtime.ILog

    log.log(new Status(IStatus.ERROR, PLUGIN_ID, IStatus.OK, message, null));
  }

  public static void logWarning(String message) {

    final ILog log = getDefault().getLog();
    log.log(new Status(IStatus.WARNING, PLUGIN_ID, IStatus.OK, message, null));
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.