Logs a custom event with optional parameters.
Future<void> logEvent(String name, AnalyticLevel level, [Map<String, Object?>? parameters]);