error method
Logs an error.
Use this to indicate that a user-requested action has failed.
Implementation
void error(String title, {String? body}) {
logger.e(getMessage(title, body));
final log = BurtLog(level: BurtLogLevel.error, title: title, body: body, device: device);
socket?.sendLog(log);
}