make the drive output prettier (#4260)

This commit is contained in:
Devon Carew
2016-05-27 22:36:07 -07:00
parent 111392d7c9
commit 49affc4098
2 changed files with 5 additions and 2 deletions

View File

@@ -57,8 +57,10 @@ class LogRecord {
final String loggerName;
final String message;
String get levelDescription => level.toString().split(".").last;
@override
String toString() => '[${"$level".split(".").last}] $loggerName: $message';
String toString() => '[${levelDescription.padRight(5)}] $loggerName: $message';
}
/// Package-private; users should use other public logging libraries.