logError function

void logError(
  1. Object error,
  2. StackTrace? stackTrace
)

Converts an error and optional stack trace into a BurtLog and calls LogsModel.handleLog.

Implementation

void logError(Object error, StackTrace? stackTrace) => models.logs.handleLog(
  BurtLog(
    level: BurtLogLevel.critical,
    title: "Dashboard Error. Click for details",
    body: "$error\n$stackTrace",
    device: Device.DASHBOARD,
  ),
);