This repository has been archived by the owner on Dec 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 44
Error Log View
Martin Malina edited this page Mar 28, 2014
·
7 revisions
- WorkbenchPart / View / WorkbenchView
- implements ReferencedComposite
Instantiate Error Log View
LogView logView = new LogView();
Open Error Log View
logView.open();
Get Messages
List<LogMessage> messages = logView.getErrorMessages();
List<LogMessage> messages = logView.getInfoMessages();
List<LogMessage> messages = logView.getOKMessages();
List<LogMessage> messages = logView.getWarningMessages();
Get message info
To gather information about particular message within Error Log View LogMessage class can be used
LogMessage logMessage = logView.getErrorMessages().get(0);
int severity = logMessage.getSeverity();
String message = logMessage.getMessage();
String pluginName = logMessage.getPlugin();
String date = logMessage.getDate();
String stackTrace = logMessage.getStackTrace();
String sessionData = logMessage.getSessionData();