InstrumentationService class abstract

The interface used by client code to communicate with an instrumentation service of some kind.

Implementers

Constructors

InstrumentationService()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

logError(String message) → void
Log the fact that an error, described by the given message, has occurred.
logException(Object exception, [StackTrace? stackTrace, List<InstrumentationServiceAttachment>? attachments]) → void
Log that the given non-priority exception was thrown, with the given stackTrace.
logInfo(String message, [dynamic exception]) → void
Log unstructured text information for debugging purposes.
logLogEntry(String level, DateTime time, String message, Object exception, StackTrace stackTrace) → void
Log that a log entry that was written to the analysis engine's log. The log entry has the given level and message, and was created at the given time.
logNotification(String notification) → void
Log that a notification has been sent to the client.
logPluginError(PluginData plugin, String code, String message, String stackTrace) → void
Log the fact that an error, described by the given message, was reported by the given plugin.
logPluginException(PluginData plugin, Object exception, StackTrace? stackTrace) → void
Log that the given non-priority exception was thrown, with the given stackTrace by the given plugin.
logPluginNotification(String pluginId, String notification) → void
Log a notification from the plugin with the given pluginId.
logPluginRequest(String pluginId, String request) → void
Log a request to the plugin with the given pluginId.
logPluginResponse(String pluginId, String response) → void
Log a response from the plugin with the given pluginId.
logPluginTimeout(PluginData plugin, String request) → void
Log that the given plugin took too long to execute the given request. This doesn't necessarily imply that there is a problem with the plugin, only that this particular response was not included in the data returned to the client.
logRequest(String request) → void
Log that a request has been sent to the client.
logResponse(String response) → void
Log that a response has been sent to the client.
logVersion(String uuid, String clientId, String clientVersion, String serverVersion, String sdkVersion) → void
Signal that the client has started analysis server. This method should be invoked exactly one time.
logWatchEvent(String folderPath, String filePath, String changeType) → void
Log that the file system watcher sent an event. The folderPath is the path to the folder containing the changed file, the filePath is the path of the file that changed, and the changeType indicates what kind of change occurred.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
shutdown() Future<void>
Shut down this service.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

NULL_SERVICE NoopInstrumentationService
A service which does not log or otherwise record instrumentation.
final