error method
Implementation
Future<void> error(String message, {String? caller}) async {
try {
// print in debug mode only
if (kDebugMode) {
print('Error: $message${caller != null ? ' -> $caller' : ''}');
}
// add the entry
hive_log.Log e =
hive_log.Log(type: "error", message: message, caller: caller);
_addEntry(e);
} catch (ex) {
Log().exception(
'Catch - Error: $message${caller != null ? ' -> $caller' : ''}');
}
}