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

Unified Diff: pkg/logging/lib/logging.dart

Issue 24341002: Add a toString() to LogRecord. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 3 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/logging/lib/logging.dart
===================================================================
--- pkg/logging/lib/logging.dart (revision 27711)
+++ pkg/logging/lib/logging.dart (working copy)
@@ -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';
devoncarew 2013/09/21 05:08:08 I actually prefer a slightly different format:
Siggi Cherem (dart-lang) 2013/10/05 01:09:38 I'm ok with either actually. In the current form,
devoncarew 2013/10/07 18:06:27 OK, changed to add the ':'.
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698