public interface ConsoleLogger extends Service
| Modifier and Type | Field and Description |
|---|---|
static String |
SERVICE_NAME |
| 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). |
List<ConsoleLoggerProtos.ConsoleMessage> |
listMessages()
Gets messages previously dispatched to the console from Opera.
|
void |
onConsoleMessage(ServiceCallback<ConsoleLoggerProtos.ConsoleMessage> callback) |
getServiceName, getServiceVersion, initstatic final String SERVICE_NAME
void addMessage(ConsoleLoggerProtos.ConsoleMessage message)
void clear()
WindowManager 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 listMessages() contain
only the messages that occurred between the call to clear() and the call
to listMessages().List<ConsoleLoggerProtos.ConsoleMessage> listMessages()
Prefs 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.void onConsoleMessage(ServiceCallback<ConsoleLoggerProtos.ConsoleMessage> callback)
Copyright © 2013. All Rights Reserved.