format method

String format({
  1. bool includeDebug = false,
})

Implementation

String format({bool includeDebug = false}) {
  final buf = StringBuffer();
  for (final entry in _entries) {
    if (!includeDebug && entry.level == TaskLogLevel.debug) continue;
    buf.writeln(entry.format());
  }
  return buf.toString();
}