logCustom static method
Log custom event
Implementation
static Future<void> logCustom({
required String eventKey,
dynamic data,
String? userId,
Map<String, dynamic>? metadata,
}) async {
if (!_config.enabled) return;
final event = AuditEvent(
type: AuditEventType.custom,
stateKey: eventKey,
newValue: data,
userId: userId,
metadata: metadata,
);
await _logEvent(event);
}