InstrumentationLogAdapter class

A class to adapt an InstrumentationService into a log using an InstrumentationLogger.

Implemented types

Constructors

InstrumentationLogAdapter(InstrumentationLogger _instrumentationLogger, {Set<String>? watchEventExclusionFiles})
Initialize a newly created instrumentation service to communicate with the given _instrumentationLogger.

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.
override
logException(dynamic exception, [StackTrace? stackTrace, List<InstrumentationServiceAttachment>? attachments]) → void
Log that the given non-priority exception was thrown, with the given stackTrace.
override
logInfo(String message, [dynamic exception]) → void
Log unstructured text information for debugging purposes.
override
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.
override
logNotification(String notification) → void
Log that a notification has been sent to the client.
override
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.
override
logPluginException(PluginData plugin, dynamic exception, StackTrace? stackTrace) → void
Log that the given non-priority exception was thrown, with the given stackTrace by the given plugin.
override
logPluginNotification(String pluginId, String notification) → void
Log a notification from the plugin with the given pluginId.
override
logPluginRequest(String pluginId, String request) → void
Log a request to the plugin with the given pluginId.
override
logPluginResponse(String pluginId, String response) → void
Log a response from the plugin with the given pluginId.
override
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.
override
logRequest(String request) → void
Log that a request has been sent to the client.
override
logResponse(String response) → void
Log that a response has been sent to the client.
override
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.
override
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.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
shutdown() Future<void>
Shut down this service.
override
toString() String
A string representation of this object.
inherited

Operators

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