mule4-audit-logging
On this page
Code
When each application builds its log its own way, following one order across them is guesswork. mule4-audit-logging is a DataWeave library that builds the content of the audit log with one envelope: processStage, eventType and the context fields. It only builds the data; the application’s logger writes it.
What it does
audit::AuditEvent: business events, flow errors and asynchronous errors.audit::AuditConstants: generic integration types and outcomes.audit::AuditUtils: truncate long texts and drop empty fields.audit::CompositeErrors: read the errors of a Salesforce composite callback.- The domain vocabulary lives in the application, in an
auditCustom.dwlfile.
Getting started
Needs Java 17 and Maven 3.9. The library is not published to a Maven repository: install it in your local one. No MuleSoft Enterprise credential is needed.
git clone https://github.com/brunosouzas/mule4-audit-logging.git
cd mule4-audit-logging
mvn clean install
The examples use json-logger, a third-party project archived by its owners.