@@ -0,0 +1,1140 @@
+package com.equalize.xpi.af.modules.util;%0A%0Aimport com.sap.engine.interfaces.messaging.api.Message;%0Aimport com.sap.engine.interfaces.messaging.api.MessageKey;%0Aimport com.sap.engine.interfaces.messaging.api.PublicAPIAccessFactory;%0Aimport com.sap.engine.interfaces.messaging.api.auditlog.AuditAccess;%0Aimport com.sap.engine.interfaces.messaging.api.auditlog.AuditLogStatus;%0Aimport com.sap.engine.interfaces.messaging.api.exception.MessagingException;%0A%0Apublic class AuditLogHelper %7B%0A%0A%09private final MessageKey msgkey;%0A%09private AuditAccess audit;%0A%09%0A%09public AuditLogHelper (Message msg)%7B%0A%09%09// Get audit log%0A%09%09this.msgkey = new MessageKey(msg.getMessageId(), msg.getMessageDirection());%0A%09%09try %7B%0A%09%09%09this.audit = PublicAPIAccessFactory.getPublicAPIAccess().getAuditAccess();%09%09%09%09%09%09%0A%09%09%7D catch (MessagingException e) %7B%0A%09%09%09this.audit = null;%0A%09%09%09System.out.println(%22WARNING: Audit log not available in standalone testing%22);%0A%09%09%7D%0A%09%7D%0A%0A%09public void addLog (AuditLogStatus status, String message) %7B%0A%09%09if (this.audit != null) %7B%0A%09%09%09this.audit.addAuditLogEntry(this.msgkey, status, message);%09%0A%09%09%7D else %7B%0A%09%09%09System.out.println( %22Audit Log: %22 + message);%0A%09%09%7D%0A%09%7D%0A%0A%7D%0A

Create AuditLogHelper.java