writeLogEntryStream function
Listens on logEntryStream and writes a standard string representation
of each log entry using writeln
.
Implementation
StreamSubscription<LogEntry> writeLogEntryStream(WriteLineFunction writeln,
{bool printTimestamp = false, bool printLoggerName = false}) {
return logEntryStream.listen((LogEntry entry) => writeLogEntry(entry, writeln,
printTimestamp: printTimestamp, printLoggerName: printLoggerName));
}