e static method

void e({
  1. String? biz,
  2. required String msg,
  3. String? docUrl,
  4. Object? error,
  5. StackTrace? stackTrace,
})

Implementation

static void e(
    {String? biz,
    required String msg,
    String? docUrl,
    Object? error,
    StackTrace? stackTrace}) {
  if (_shouldLog(AntdLogLevel.error)) {
    _printLog('Error', biz, '$msg${error != null ? ' - Error: $error' : ''}',
        docUrl);

    if (stackTrace != null) {
      debugPrint("[Antd Logs][Error]:堆栈跟踪:");
      debugPrint(stackTrace.toString());
    } else if (_enableStackTrace) {
      debugPrint("[Antd Logs][Error]:以下是该模块的堆栈");
      debugPrintStack();
    }
  }
}