e static method

Future<String> e(
  1. Object e, {
  2. StackTrace? st,
})

Implementation

static Future<String> e(Object e, {StackTrace? st}) async {
  final _msg =
      '\n ERROR: [${dt.toIso8601String()}] $e ${st != null ? '\n $st' : ''}';
  Logger.c(e, st: st);
  await (await logFile).writeAsString(_msg, mode: FileMode.append);
  return _msg;
}