Examples of ILog


Examples of org.eclipse.core.runtime.ILog

   * @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

import org.eclipse.core.runtime.Status;

public class Log {

  public static void warn(final String message) {
    final ILog log = ChartsPlugin.getDefault().getLog();
    log.log(new Status(IStatus.WARNING, ChartsPlugin.ID, 0, message, null));
  }
View Full Code Here

Examples of org.eclipse.core.runtime.ILog

   * Log status using the default plugin logger
   * @param status
   */
  public static void log(IStatus status)
  {
      ILog log = getDefault().getLog();
      log.log(status);
  }
View Full Code Here

Examples of org.eclipse.core.runtime.ILog

    {
        final IStatus logStatus = new Status(IStatus.ERROR, PLUGIN_ID, IStatus.OK, msg, e);
        JSFCorePlugin currentPlugin = getDefault();
        if (currentPlugin != null)
        {
            final ILog log = currentPlugin.getLog();
            if (log != null)
            {
                log.log(logStatus);
            }
        }
        System.err.println(logStatus);
    }
View Full Code Here

Examples of org.eclipse.core.runtime.ILog

    {
      Status logObject = new Status(severity, PLUGIN_ID, IStatus.OK, message, ex);
      JSFCorePlugin default1 = getDefault();
      if (default1 != null)
      {
        ILog log = default1.getLog();
        if (log != null)
        {
          log.log(logObject);
          return;
        }
      }
      System.err.println(logObject.toString());
    }
View Full Code Here

Examples of org.eclipse.core.runtime.ILog

     * @param message
     * @param t
     */
    public static void log(final String message, final Throwable t)
    {
        final ILog log = plugin.getLog();
        log.log(new Status(IStatus.ERROR, plugin.getBundle().getSymbolicName(),
                0, message, t));
    }
View Full Code Here

Examples of org.eclipse.core.runtime.ILog

    {
        final IStatus logStatus = new Status(IStatus.ERROR, PLUGIN_ID, IStatus.OK, msg, e);
        TapestryCorePlugin currentPlugin = getDefault();
        if (currentPlugin != null)
        {
            final ILog log = currentPlugin.getLog();
            if (log != null)
            {
                log.log(logStatus);
            }
        }
        System.err.println(logStatus);
    }
View Full Code Here

Examples of org.eclipse.core.runtime.ILog

    {
      Status logObject = new Status(severity, PLUGIN_ID, IStatus.OK, message, ex);
      TapestryCorePlugin default1 = getDefault();
      if (default1 != null)
      {
        ILog log = default1.getLog();
        if (log != null)
        {
          log.log(logObject);
          return;
        }
      }
      System.err.println(logObject.toString());
    }
View Full Code Here

Examples of org.eclipse.core.runtime.ILog

     * @param message
     * @param t
     */
    public static void log(final String message, final Throwable t)
    {
        final ILog log = plugin.getLog();
        log.log(new Status(IStatus.ERROR, plugin.getBundle().getSymbolicName(),
                0, message, t));
    }
View Full Code Here

Examples of org.eclipse.core.runtime.ILog

  public static Image getJettyIcon() {
    return plugin.getImageRegistry().get(JETTY_ICON);
  }

  static public void logError(Exception e) {
    ILog log = plugin.getLog();
    StringWriter stringWriter = new StringWriter();
    e.printStackTrace(new PrintWriter(stringWriter));
    String msg = stringWriter.getBuffer().toString();
    Status status = new Status(IStatus.ERROR, getDefault().getBundle()
        .getSymbolicName(), IStatus.ERROR, msg, null);
    log.log(status);
  }
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.