It would be good to somehow have some public API to add some extra loggable context so that when the audit are written these addition context can be logged together. Otherwise it would be good to have some more stable public server API to create new audit logging events so that customized modules, auth tree modules, PAP and other can leverage these public API to log extra information
- As there is an AuditContext, maybe it would be nice if one can add to the audit context some extra JSON fields (or key value/string) that when the audit is written the these are also printed. If this is coupled with the Audit exclusion list this may help make the audit more extensible for other uses.
- API to create one own audit logging event / category that than goes to these existing Audit logger AM has. THis will help then to create new audit entry for other purposes.
- Public API to get the transactionId or context for external logging or use case.
(Consider also if these can be created in Scripts, Trees and also in Custom modules)