Index: sdk/lib/_internal/js_runtime/lib/developer_patch.dart |
diff --git a/sdk/lib/_internal/js_runtime/lib/developer_patch.dart b/sdk/lib/_internal/js_runtime/lib/developer_patch.dart |
index a6087a1a1791ca544169b2944203ca03f288c8bc..abc4ff198d8fa781cb1fae67376dec87891a7c2c 100644 |
--- a/sdk/lib/_internal/js_runtime/lib/developer_patch.dart |
+++ b/sdk/lib/_internal/js_runtime/lib/developer_patch.dart |
@@ -30,3 +30,24 @@ bool debugger({bool when: true, String msg}) { |
inspect(object) { |
return object; |
} |
+ |
+@patch |
+/// Emit a log event. |
+/// [sequenceNumber] is a monotonically increasing sequence number. |
+/// [millisececondsSinceEpoch] is a timestamp. |
+/// [level] is the severity level (value between 0 and 2000 inclusive). |
+/// [name] is the name of the source of the log message. |
+/// [message] is the log message. |
+/// [zone] (optional) the zone where the log was emitted |
+/// [error] (optional) an error object associated with this log event. |
+/// [stackTrace] (optional) a stack trace associated with this log event. |
+log(int sequenceNumber, |
+ int millisecondsSinceEpoch, |
+ int level, |
+ String name, |
+ String message, |
+ [Zone zone, |
+ Object error, |
+ StackTrace stackTrace]) { |
+ // TODO. |
+} |