The print of the stack trace will not be displayed in the error log, it will simply be lost (except when executed from Eclipse or using the console).
Logging Activatoris the usual way to register. Code logging provided by classes Pluginor AbstractUIPluginis:
ILog log = Activator.getDefault().getLog();
log.log(new Status(....));
Statushas several different constructors, depending on what you want to write. For instance:
new Status(IStatus.ERROR, ID, errorNumber, message, exception);
new Status(IStatus.ERROR, message, exception);
source
share