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 givenstackTrace
.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
andmessage
, and was created at the giventime
.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 givenplugin
.override -
logPluginException(
PluginData plugin, dynamic exception, StackTrace? stackTrace) → void -
Log that the given non-priority
exception
was thrown, with the givenstackTrace
by the givenplugin
.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 givenrequest
. 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, thefilePath
is the path of the file that changed, and thechangeType
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
Constants
- TAG_ERROR → const String
- TAG_EXCEPTION → const String
- TAG_INFO → const String
- TAG_LOG_ENTRY → const String
- TAG_NOTIFICATION → const String
- TAG_PLUGIN_ERROR → const String
- TAG_PLUGIN_EXCEPTION → const String
- TAG_PLUGIN_NOTIFICATION → const String
- TAG_PLUGIN_REQUEST → const String
- TAG_PLUGIN_RESPONSE → const String
- TAG_PLUGIN_TIMEOUT → const String
- TAG_REQUEST → const String
- TAG_RESPONSE → const String
- TAG_VERSION → const String
- TAG_WATCH_EVENT → const String