logEventFor method

  1. @override
Future<void> logEventFor(
  1. AnalyticsEvent value
)
override

Implementation

@override
Future<void> logEventFor(AnalyticsEvent value) async {
  logging.info('logEventFor() value: $value');
  try {
    final event = this.event(value.eventName);
    final parameters = value.toJson();
    parameters.remove('name');
    event.addParameters(parameters);
    return event.log();
  } catch (error) {
    logging.severe('logEventFor()', error);
    throw AnalyticsDataSourceException();
  }
}