sendLogEvent method

  1. @override
  2. @mustCallSuper
FutureOr<void> sendLogEvent({
  1. required covariant DiagnosticLogsEvent event,
})
inherited

Send an log with the custom informate implement to all the diagnostic.

A DiagnosticAnalyticEvent extension can be create if you need a custom information.

Implementation

@override
@mustCallSuper
FutureOr<void> sendLogEvent({required covariant DiagnosticLogsEvent event}) {
  if (!options.mustSendLogsEvents) return null;

  for (Diagnostic diagnostic in _diagnostics) {
    diagnostic.sendLogEvent(
      event: event,
    );
  }
}