export method

String export()

Formats the entire buffer as a single string suitable for writing to a text file attachment.

Implementation

String export() {
  final buf = StringBuffer();
  for (final entry in _entries) {
    buf.writeln('${entry.timestamp.toIso8601String()}  ${entry.message}');
  }
  return buf.toString();
}