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

Unified Diff: tools/testing/dart/utils.dart

Issue 16958003: Moving timing info to utils.dart:DebugLogger (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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 | « tools/testing/dart/browser_controller.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/testing/dart/utils.dart
diff --git a/tools/testing/dart/utils.dart b/tools/testing/dart/utils.dart
index 4ab769cacc46f01b1ff387ade219804576cba9dc..4c8170f9125ab308b7c7fff9ba5fab3b96a7381b 100644
--- a/tools/testing/dart/utils.dart
+++ b/tools/testing/dart/utils.dart
@@ -40,17 +40,17 @@ class DebugLogger {
}
static void info(String msg, [error]) {
msg = _formatErrorMessage(msg, error);
- _print("Info: $msg");
+ _print("$_datetime Info: $msg");
}
static void warning(String msg, [error]) {
msg = _formatErrorMessage(msg, error);
- _print("Warning: $msg");
+ _print("$_datetime Warning: $msg");
}
static void error(String msg, [error]) {
msg = _formatErrorMessage(msg, error);
- _print("Error: $msg");
+ _print("$_datetime Error: $msg");
}
static void _print(String msg) {
@@ -60,6 +60,8 @@ class DebugLogger {
print(msg);
}
}
+
+ static String get _datetime => "${new DateTime.now()}";
}
List<int> encodeUtf8(String string) {
« no previous file with comments | « tools/testing/dart/browser_controller.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698