Skip to content

Error Log View

Martin Malina edited this page Mar 28, 2014 · 7 revisions

API / Abstract

Implementation

Tests Implementation

Usage

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();
Clone this wiki locally