public class ScopeConsoleLogger extends AbstractService implements ConsoleLogger
servicesSERVICE_NAME| Constructor and Description |
|---|
ScopeConsoleLogger(ScopeServices services) |
| Modifier and Type | Method and Description |
|---|---|
void |
addMessage(ConsoleLoggerProtos.ConsoleMessage message)
Add a new message to the internal cache of console messages in the Scope server.
|
void |
clear()
Clear messages in the console backend, including messages outside the window filter (see the
WindowManager service for more information). |
void |
init()
Initialize the service.
|
List<ConsoleLoggerProtos.ConsoleMessage> |
listMessages()
Gets messages previously dispatched to the console from Opera.
|
void |
onConsoleMessage(ServiceCallback<ConsoleLoggerProtos.ConsoleMessage> callback) |
buildPayload, executeMessage, executeMessage, executeMessage, getServiceName, getServiceVersion, isVersionInRange, sleep, toString, xpathIterator, xpathPointerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetServiceName, getServiceVersionpublic ScopeConsoleLogger(ScopeServices services)
public void init()
Servicepublic void addMessage(ConsoleLoggerProtos.ConsoleMessage message)
ConsoleLoggeraddMessage in interface ConsoleLoggerpublic void clear()
ConsoleLoggerWindowManager service for more information). This does not necessarily clear the UI
error console used by Desktop or other products, as they may choose to store the message
information separately.
It will, however, ensure that the next call to ConsoleLogger.listMessages() contain
only the messages that occurred between the call to clear() and the call
to ConsoleLogger.listMessages().clear in interface ConsoleLoggerpublic List<ConsoleLoggerProtos.ConsoleMessage> listMessages()
ConsoleLoggerPrefs service to read this value, if desired.
The return value will contain only messages that match the window filter. See the WindowManager service for more information.listMessages in interface ConsoleLoggerpublic void onConsoleMessage(ServiceCallback<ConsoleLoggerProtos.ConsoleMessage> callback)
onConsoleMessage in interface ConsoleLoggerCopyright © 2012. All Rights Reserved.