critical method

void critical(
  1. String title, {
  2. String? body,
})

Logs a critical message.

Use this to indicate that the program cannot recover and must terminate.

Implementation

void critical(String title, {String? body}) {
  logger.f(getMessage(title, body));
  final log = BurtLog(level: BurtLogLevel.critical, title: title, body: body, device: device);
  socket?.sendLog(log);
}