commit | 853205805549315b655ddea7f70931801955973c | [log] [tgz] |
---|---|---|
author | devoncarew@google.com <devoncarew@google.com> | Mon Oct 07 18:04:47 2013 +0000 |
committer | devoncarew@google.com <devoncarew@google.com> | Mon Oct 07 18:04:47 2013 +0000 |
tree | 88727d2cad213bc47c025e2aee9a468fa7dd6a10 | |
parent | fc9de7cf6fff4a1135bcb55e9db35e3d291994ab [diff] |
Add a toString() to LogRecord. R=sigmund@google.com Review URL: https://codereview.chromium.org//24341002 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/logging@28317 260f80e4-7a28-3924-810f-c04153c831b5
diff --git a/lib/logging.dart b/lib/logging.dart index 1eae910..3376145 100644 --- a/lib/logging.dart +++ b/lib/logging.dart
@@ -310,4 +310,6 @@ LogRecord(this.level, this.message, this.loggerName, [this.exception]) : time = new DateTime.now(), sequenceNumber = LogRecord._nextNumber++; + + String toString() => '[${level.name}] $loggerName: $message'; }