exportLogsAsJsonLines static method
Exports all stored logs as a JSONL string (one JSON object per line).
Web-safe. Use however you want: save to file, send to a server, etc.
Implementation
static String exportLogsAsJsonLines() {
final buffer = StringBuffer();
for (final item in items) {
buffer.writeln(item.toJson(pretty: false));
}
return buffer.toString();
}