errorWithException method
Send an ERROR level log from an exception
Implementation
Future<LogResponse> errorWithException(
String message,
Object exception, {
StackTrace? stackTrace,
String? metadata,
String? userIdentifier,
String? sessionId,
}) {
return error(
message,
stackTrace: stackTrace?.toString() ?? exception.toString(),
metadata: metadata,
userIdentifier: userIdentifier,
sessionId: sessionId,
);
}