logBehaviourEvent method
Implementation
Future<void> logBehaviourEvent(String type,
{dynamic payload, IBehaviorConfig? config}) async {
String simplifiedType = type.toUpperCase();
simplifiedType = [
config?.prefix?.toUpperCase(),
simplifiedType,
config?.postfix?.toUpperCase()
].where((part) => part != null && part.isNotEmpty).join('_');
await log(simplifiedType, payload: payload);
}