Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Unified Diff: pkg/analyzer/lib/instrumentation/instrumentation.dart

Issue 818733006: Fix for issue 21982 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/element.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/instrumentation/instrumentation.dart
diff --git a/pkg/analyzer/lib/instrumentation/instrumentation.dart b/pkg/analyzer/lib/instrumentation/instrumentation.dart
index 3c9974c5184091083870b20bbeb0ca02f2910674..af4f6fc032b0fe8f1f808913621e1b2b43838c56 100644
--- a/pkg/analyzer/lib/instrumentation/instrumentation.dart
+++ b/pkg/analyzer/lib/instrumentation/instrumentation.dart
@@ -45,6 +45,7 @@ class InstrumentationService {
static final InstrumentationService NULL_SERVICE =
new InstrumentationService(null);
+ static const String TAG_ERROR = 'Err';
static const String TAG_EXCEPTION = 'Ex';
static const String TAG_NOTIFICATION = 'Noti';
static const String TAG_REQUEST = 'Req';
@@ -69,6 +70,13 @@ class InstrumentationService {
String get _timestamp => new DateTime.now().millisecondsSinceEpoch.toString();
/**
+ * Log the fact that an error, described by the given [message], has occurred.
+ */
+ void logError(String message) {
+ _log(TAG_ERROR, message);
+ }
+
+ /**
* Log that the given non-priority [exception] was thrown, with the given
* [stackTrace].
*/
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/element.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698