Index: dart/pkg/logging/lib/logging.dart |
diff --git a/dart/pkg/logging/lib/logging.dart b/dart/pkg/logging/lib/logging.dart |
index 5f4bc2be8ae4cbaf2a85652190cbc22045c7fbba..66aeb8e685f8291b1b14c48d638c9696d7d62296 100644 |
--- a/dart/pkg/logging/lib/logging.dart |
+++ b/dart/pkg/logging/lib/logging.dart |
@@ -147,7 +147,7 @@ class Logger { |
if (message is! String) message = message.toString(); |
var record = new LogRecord(logLevel, message, fullName, error, |
- stackTrace); |
+ stackTrace, Zone.current); |
if (hierarchicalLoggingEnabled) { |
var target = this; |
@@ -314,8 +314,12 @@ class LogRecord { |
/** Associated stackTrace (if any) when recording errors messages. */ |
final StackTrace stackTrace; |
+ /** Zone of the calling code which resulted in this LogRecord. */ |
+ final Zone zone; |
+ |
LogRecord(this.level, this.message, this.loggerName, [this.error, |
Søren Gjesse
2014/12/09 07:48:35
I know that this is not related to you change, but
kustermann
2015/01/07 12:38:44
That would be a breaking change and I don't intent
|
- this.stackTrace]) |
+ this.stackTrace, |
+ this.zone]) |
: time = new DateTime.now(), |
sequenceNumber = LogRecord._nextNumber++; |