allLogs method

List<LogRecord> allLogs()

Flatten all nested LogRecords into a single list for convenience.

Implementation

List<LogRecord> allLogs() => [
  for (final rl in resourceLogs)
    for (final sl in rl.scopeLogs) ...sl.logRecords,
];