logError static method
Log an RxException with context
Implementation
static void logError(RxException error, {String? context}) {
// Use ZenConfig.logLevel instead of getRxErrorConfig().logErrors
if (!ZenLogLevel.error.shouldLog(ZenConfig.logLevel)) return;
final config = getRxErrorConfig();
if (config.customLogger != null) {
config.customLogger!(error);
} else {
final prefix = context != null ? 'Rx$context Error' : 'RxError';
ZenLogger.logError('$prefix: $error');
}
}