writeLogEntryStream function

StreamSubscription<LogEntry> writeLogEntryStream(
  1. WriteLineFunction writeln, {
  2. bool printTimestamp = false,
  3. bool printLoggerName = false,
})

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));
}