public class LoggingAuditor extends AbstractAuditor
Auditor implementation that utilizes the Apache Commons logging framework as the storage medium for auditing events. Audit events are distinguished
from other log entries with the tag [DIRECT AUDIT EVENT] in the log text.| Constructor and Description |
|---|
LoggingAuditor()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
writeEvent(java.util.UUID eventId,
java.util.Calendar eventTimeStamp,
java.lang.String principal,
AuditEvent event,
java.util.Collection<? extends AuditContext> contexts)
Writes the auditable event to the storage medium.
|
audit, auditpublic void writeEvent(java.util.UUID eventId,
java.util.Calendar eventTimeStamp,
java.lang.String principal,
AuditEvent event,
java.util.Collection<? extends AuditContext> contexts)
writeEvent in class AbstractAuditoreventId - An arbitrary unique ID for the event.eventTimeStamp - The date/time that the event record was created.principal - An identifier of the entity that performed the event. This may be an actual user performing a workflow or a system entity
performing back office processing. Cannot be null or empty.event - The event that was performed and that will be audited. Cannot be nullcontexts - A collection of contexts that provide additional information for the event.Copyright © 2010-2019 The Direct Project. All Rights Reserved.