debug static method
void
debug(})
Implementation
static void debug(dynamic message, {DateTime? time, Object? error, StackTrace? stackTrace, bool isReport = true, required String actionModule, required String actionName}) {
if (isLogPathInitialized(message)) {
try {
if (isMobile) {
MXLogger.instance.debug(message, name: actionModule, tag: actionName);
} else {
logger.d(
jsonEncode({
"time": time?.toIso8601String() ?? DateTime.now().toIso8601String(),
"sequence": _sequence,
"message": message,
"actionModule": actionModule,
"actionName": actionName,
"error": error.toString(),
"stackTrace": stackTrace?.toString(),
}),
time: time ?? DateTime.now(),
error: error,
stackTrace: stackTrace ?? StackTrace.current,
);
}
} catch (_) {}
if (isReport) {
_sequence++;
report(TCICLogParam(sequence: _sequence, module: actionModule, action: actionName, param: message, level: "debug", code: -2, desc: "Debug", stack: stackTrace.toString()));
}
}
}