e static method
void
e({
- String? biz,
- required String msg,
- String? docUrl,
- Object? error,
- 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();
}
}
}