Index: utils/pub/log.dart |
diff --git a/utils/pub/log.dart b/utils/pub/log.dart |
index 870a305671abf15d1690deecc0dab04222c82489..ec3fee9798944e586b359b1a0ab0891f78f8d0e0 100644 |
--- a/utils/pub/log.dart |
+++ b/utils/pub/log.dart |
@@ -6,7 +6,9 @@ |
library log; |
import 'dart:async'; |
+ |
import 'io.dart'; |
+import 'utils.dart'; |
typedef LogFn(Entry entry); |
final Map<Level, LogFn> _loggers = new Map<Level, LogFn>(); |
@@ -73,7 +75,7 @@ void fine(message) => write(Level.FINE, message); |
void write(Level level, message) { |
if (_loggers.isEmpty) showNormal(); |
- var lines = message.toString().split(NEWLINE_PATTERN); |
+ var lines = splitLines(message.toString()); |
var entry = new Entry(level, lines); |
var logFn = _loggers[level]; |