InstrumentationLogAdapter class

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

Implemented types

Constructors

InstrumentationLogAdapter(InstrumentationLogger _instrumentationLogger)
Initialize a newly created instrumentation service to communicate with the given _instrumentationLogger.

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

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 non-existent method or property is accessed. [...]
inherited
shutdown() Future<void>
Shut down this service.
override
toString() String
Returns a string representation of this object.
inherited

Operators

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

Constants

TAG_ERROR → const String
'Err'
TAG_EXCEPTION → const String
'Ex'
TAG_INFO → const String
'Info'
TAG_LOG_ENTRY → const String
'Log'
TAG_NOTIFICATION → const String
'Noti'
TAG_PLUGIN_ERROR → const String
'PluginErr'
TAG_PLUGIN_EXCEPTION → const String
'PluginEx'
TAG_PLUGIN_NOTIFICATION → const String
'PluginNoti'
TAG_PLUGIN_REQUEST → const String
'PluginReq'
TAG_PLUGIN_RESPONSE → const String
'PluginRes'
TAG_PLUGIN_TIMEOUT → const String
'PluginTo'
TAG_REQUEST → const String
'Req'
TAG_RESPONSE → const String
'Res'
TAG_VERSION → const String
'Ver'
TAG_WATCH_EVENT → const String
'Watch'