| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 /// Interact with developer tools such as the debugger and inspector. | 5 /// Interact with developer tools such as the debugger and inspector. |
| 6 /// | 6 /// |
| 7 /// The dart:developer library is _unstable_ and its API might change slightly | 7 /// The dart:developer library is _unstable_ and its API might change slightly |
| 8 /// as a result of developer feedback. This library is platform dependent and | 8 /// as a result of developer feedback. This library is platform dependent and |
| 9 /// therefore it has implementations for both dart2js and the Dart VM. Both are | 9 /// therefore it has implementations for both dart2js and the Dart VM. Both are |
| 10 /// under development and may not support all operations yet. | 10 /// under development and may not support all operations yet. |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 /// Emit a log event. | 44 /// Emit a log event. |
| 45 /// [message] is the log message. | 45 /// [message] is the log message. |
| 46 /// [time] (optional) is the timestamp. | 46 /// [time] (optional) is the timestamp. |
| 47 /// [sequenceNumber] (optional) is a monotonically increasing sequence number. | 47 /// [sequenceNumber] (optional) is a monotonically increasing sequence number. |
| 48 /// [level] (optional) is the severity level (value between 0 and 2000). | 48 /// [level] (optional) is the severity level (value between 0 and 2000). |
| 49 /// [name] (optional) is the name of the source of the log message. | 49 /// [name] (optional) is the name of the source of the log message. |
| 50 /// [zone] (optional) the zone where the log was emitted | 50 /// [zone] (optional) the zone where the log was emitted |
| 51 /// [error] (optional) an error object associated with this log event. | 51 /// [error] (optional) an error object associated with this log event. |
| 52 /// [stackTrace] (optional) a stack trace associated with this log event. | 52 /// [stackTrace] (optional) a stack trace associated with this log event. |
| 53 external void log(String message, | 53 external void log(String message, |
| 54 {DateTime time, | 54 {DateTime time, |
| 55 int sequenceNumber, | 55 int sequenceNumber, |
| 56 int level: 0, | 56 int level: 0, |
| 57 String name: '', | 57 String name: '', |
| 58 Zone zone, | 58 Zone zone, |
| 59 Object error, | 59 Object error, |
| 60 StackTrace stackTrace}); | 60 StackTrace stackTrace}); |
| OLD | NEW |