Ejemplo n.º 1
0
 /**
  * Log info.
  *
  * @param throwable actual error or null could be passed
  * @param message the message
  */
 public void logInfo(String message, Throwable throwable) {
   if (message == null && throwable != null) {
     message = throwable.getMessage();
   }
   getLog().log(new Status(IStatus.INFO, Activator.ID, IStatus.OK, message, throwable));
   debug(message, throwable);
 }
Ejemplo n.º 2
0
 /**
  * Log error.
  *
  * @param throwable actual error or null could be passed
  * @param error the error
  */
 public void logError(String error, Throwable throwable) {
   if (error == null && throwable != null) {
     error = throwable.getMessage();
   }
   getLog().log(new Status(IStatus.ERROR, Activator.ID, IStatus.OK, error, throwable));
   debug(error, throwable);
 }