logsForDevice method

ListQueue<BurtLog>? logsForDevice(
  1. Device? device
)

Returns the list of log messages for the corresponding device

Implementation

ListQueue<BurtLog>? logsForDevice(Device? device) => switch (device) {
  Device.SUBSYSTEMS => subsystemLogs,
  Device.VIDEO => videoLogs,
  Device.AUTONOMY => autonomyLogs,
  Device.DASHBOARD => dashboardLogs,
  null => allLogs,
  _ => null,
};